Golang开发环境部署
Posted yes5144
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Golang开发环境部署相关的知识,希望对你有一定的参考价值。
依赖包在golang.org ???
git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net
git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys
git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools
git clone https://github.com/golang/sync.git $GOPATH/src/github.com/golang/sync
git clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint
git clone https://github.com/golang/text.git $GOPATH/src/github.com/golang/text
mkdir -p $GOPATH/src/golang.org/x
cp -a $GOPATH/src/github.com/golang/ $GOPATH/src/golang.org/x
go get -v github.com/rogpeppe/godef
go get -v github.com/mdempsky/gocode
go get -v github.com/stamblerre/gocode
go get -v golang.org/x/tools/cmd/goimports
go get -v github.com/ramya-rao-a/go-outline
go get -v golang.org/x/tools/cmd/gopls
go get -u github.com/spf13/cobra/cobra
vscode go代码补全
https://maiyang.me/post/2018-09-14-tips-vscode/
以上是关于Golang开发环境部署的主要内容,如果未能解决你的问题,请参考以下文章
golang开发:环境篇 Go运行监控Supervisord的使用