Go工具包手动安装
Posted 云灬沙
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Go工具包手动安装相关的知识,希望对你有一定的参考价值。
VSCODE配置go语言环境时被墙怕了,直接手动吧
在GOPATH目录下下载这些工具包
go get -u -v github.com/nsf/gocode
go get -u -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
go get -u -v github.com/ramya-rao-a/go-outline
go get -u -v github.com/acroca/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/fatih/gomodifytags
go get -u -v github.com/haya14busa/goplay/cmd/goplay
go get -u -v github.com/josharian/impl
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
go get -u -v github.com/rogpeppe/godef
go get -u -v golang.org/x/tools/cmd/godoc
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/cweill/gotests/...
go get -u github.com/go-delve/delve/cmd/dlv
go get -u -v github.com/zmb3/gogetdoc
go get -u -v golang.org/x/tools/cmd/goimports
可以加个代理
// 开启代理设置,Go 1.13 以上默认启用,可跳过此步
go env -w GO111MODULE=on
// 设置代理
go env -w GOPROXY=https://goproxy.io,direct
以上是关于Go工具包手动安装的主要内容,如果未能解决你的问题,请参考以下文章