Go for Visual Studio Code

1 개요[ | ]

Go for Visual Studio Code (vscode-go)
vscode go extension

Go-extension.png

2 예시 1[ | ]

go get -v golang.org/x/tools/gopls
go get golang.org/x/tools/cmd/goimports
go get github.com/ramya-rao-a/go-outline
go get github.com/go-delve/delve/cmd/dlv

3 예시 2[ | ]

{
  "go.docsTool": "godoc",
  "go.formatTool": "goreturns",
  "go.lintTool": "golint",
}
Docs Tool godoc, gogetdoc, guru
Format Tool gofmt, goimports, goreturns, goformat
Lint Tool golint, golangci-lint, revive, staticcheck
  • go get -v github.com/mdempsky/gocode
  • go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
  • go get -v github.com/ramya-rao-a/go-outline
  • go get -v github.com/stamblerre/gocode
  • go get -v github.com/zmb3/gogetdoc
  • go get -v github.com/golangci/golangci-lint/cmd/golangci-lint
  • go get -v golang.org/x/tools/cmd/guru --- Go to implementations
  • go get -v github.com/rogpeppe/godef

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}