安装gocode
打开命令提示符(以管理员身份打开),输入:
go get -u -v github.com/nsf/gocode
安装godef
go get -u -v github.com/rogpeppe/godef
安装golint
# 创建 $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/tools.git
git clone https://github.com/golang/lint.git
# 完成以上步骤后,执行
go get golang.org/x/lint/golint
安装go-find-references
go get -u -v github.com/lukehoban/go-find-references
安装go-outline
go get -u -v github.com/lukehoban/go-outline
安装goreturns
go get -u -v sourcegraph.com/sqs/goreturns
安装gorename
go get -u -v golang.org/x/tools/cmd/gorename
提示:如果还提示报错,因为前面已经git clone 下来了,可以执行执行"go install golang.org/x/tools/cmd/gorename";
安装gopkgs
go get -u -v github.com/tpng/gopkgs
安装go-symbols
go get -u -v github.com/newhook/go-symbols