Skip to content

Instantly share code, notes, and snippets.

@limingjie
Last active May 12, 2019 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save limingjie/3e1b3f59b7e8f0e3ba0685263e1ea7d8 to your computer and use it in GitHub Desktop.
Save limingjie/3e1b3f59b7e8f0e3ba0685263e1ea7d8 to your computer and use it in GitHub Desktop.
Golang Development Environment - Windows

Golang Development Environment - Windows

  1. Install golang.
  • Set env var GOROOT = C:\Go.
  • Set env var GOPATH = C:\GoPath.
  • Append C:\Go\bin to env var PATH.
  1. Install gitbash.
  2. Install vscode.
  • Install vscode extension Go (by lukehoban).
  • Set GOROOT and GOPATH in vscode user settings.
    • "go.goroot": "C:/Go"
    • "go.gopath": "C:/GoPath"
  • Run vscode command Go: Install Tools.
    • gocode gopkgs go-outline go-symbols guru gorename godef goreturns golint gotests
  1. Install golang delve debugger in gitbash.
  • go get github.com/derekparker/delve/cmd/dlv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment