Linux vscode基本配置以及golang插件安装 - 尚码园 (shangmayuan.com)
go env -w GOPROXY=https://goproxy.cn,direct
mkdir /usr/local/go
mkdir /root/go
echo "export GOROOT=/usr/local/go" >> /etc/profile
echo "export GOPATH=/root/go" >> /etc/profile
go env
cd $GOPATH/src
go get -u -v github.com/nsf/gocode
go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/lukehoban/go-outline
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/josharian/impl
go get -u -v github.com/sqs/goreturns
go get -u -v github.com/bytbox/golint
go get -u -v github.com/cweill/gotests/gotests
go get -u -v github.com/go-delve/delve/cmd/dlv
搭建vscode golang开发环境 - 云+社区 - 腾讯云 (tencent.com)
有疑问加站长微信联系(非本文作者)