赞
踩
点击install all之后,output输出,等待,然后是各种下载失败。
此处以Ubuntu为例:(其它Linux相同)
解决思路,使用代理软件源:(参考https://goproxy.cn/ )
方式1:(只在当前会话有效)
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
方式2:(更改环境变量)
修改home目录下的.profile文件
在最后面写入
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
然后手动下载缺少的模块插件
然后重新手动输入命令即可 go get -v github.com/sqs/goreturns go get -v github.com/rogpeppe/godef go get -v github.com/mdempsky/gocode go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs go get -v github.com/ramya-rao-a/go-outline go get -v github.com/acroca/go-symbols go get -vgolang.org/x/tools/cmd/guru go get -v golang.org/x/tools/cmd/gorename go get -v github.com/cweill/gotests/... go get -v github.com/fatih/gomodifytags go get -v github.com/josharian/impl go get -v github.com/davidrjenni/reftools/cmd/fillstruct go get -v github.com/haya14busa/goplay/cmd/goplay go get -v github.com/godoctor/godoctor go get -v github.com/go-delve/delve/cmd/dlv go get -v github.com/stamblerre/gocode go get -v github.com/rogpeppe/godef go get -v github.com/sqs/goreturns go get -v golang.org/x/lint/golint
发现一切都会安装成功.
如有各种疑问,加Q详聊1021752458.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。