- Install golang.
- Set env var
GOROOT = C:\Go
. - Set env var
GOPATH = C:\GoPath
. - Append
C:\Go\bin
to env varPATH
.
- Install gitbash.
- Install vscode.
- Install vscode extension Go (by lukehoban).
- Set
GOROOT
andGOPATH
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
- Install golang delve debugger in gitbash.
go get github.com/derekparker/delve/cmd/dlv