转载自:https://www.jianshu.com/p/b3c39a8be18e
vscode GO依赖包安装
安装必要插件
1、下载golang.org包
$ cd $GOPATH/src
$ mkdir golang.org
$ cd golang.org
$ mkdir x
$ cd x
git clone https://github.com/golang/lint.git
git clone https://github.com/golang/tools.git
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/net.git
git clone https://github.com/golang/text.git
建立连接
mklink /d D:\GO_PATH\src\golang.org\x D:\GO_PATH\src\github.com\golang
git clone https://github.com/9fans/go D:/GO_PATH/src/9fans.net/go
go get -u -v github.com/rogpeppe/godef
cd $GOPATH/src/github.com/rogpeppe/godef
go clean -r -i
go install -v
2、下载其他模块
++go get github.com/golang/lint@master
++go get github.com/golang/tools@