go get 不成功解决方案

走下国内镜像吧

go get 确实是很忙,跟你git下来一样,我无意中找到的,

来 cmd打开  输入这两局

第一句是 启用Go Modules 功能

第二句是 配置GOPROXY 国内代理地址,

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct

当然 如果你要用阿里云的 换成下面

go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/

百度的

go env -w GOPROXY=https://goproxy.baidu.com

当然 这个是走  github.com的资源会快点,想code.google.com之类的  你可能要去找下 github上有没有镜像了

好了go交流群 852311425  go交流群绝对原创,转载请附上 本微博链接。打赏下哦~

猜你喜欢

转载自blog.csdn.net/xuelang532777032/article/details/108584203