Skip to content

Instantly share code, notes, and snippets.

View mayank-pant's full-sized avatar

Mayank Pant mayank-pant

View GitHub Profile
@mayank-pant
mayank-pant / godebug.md
Created July 8, 2022 08:35
VSCode Go Gist

Debugging

The Go extension allows you to launch or attach to Go programs for debugging. You can inspect variables and stacks, set breakpoints, and do other debugging activities using VS Code’s Debugging UI.

These debugging features are possible by using Delve, the Go debugger. The Go extension has been communicating with Delve through a custom debug adapter program (legacy mode). As the new Delve's native debug adapter implementation has become available (since Delve v1.6.1), the Go extension is transitioning to deprecate the legacy debug adapter in favor of direct communication with Delve via DAP.

📣 **We are happy to announce that the new dlv-dap mode of Delve integration is enabled for local debugging by default. For remote debugging it is the default i

@mayank-pant
mayank-pant / Go overview.md
Last active June 7, 2022 07:33 — forked from BrianWill/Go overview.md
Go language overview for experienced programmers

The Go language for experienced programmers

Why use Go?

  • Like C, but with garbage collection, memory safety, and special mechanisms for concurrency
  • Pointers but no pointer arithmetic
  • No header files
  • Simple, clean syntax
  • Very fast native compilation (about as quick to edit code and restart as a dynamic language)
  • Easy-to-distribute executables