go get github.com/**/* 遇到这样的问题 dial tcp : i/o timeout

新手上路,请多包涵

Get "https://proxy.golang.org/*/": dial tcp 34.64.4.113:443: i/o timeout

运行以下两行代码

go env -w GOPROXY=https://goproxy.cn
go env -w GOSUMDB=off

参考:请求增加go语言镜像代理服务

阅读 5.9k
2 个回答

你需要设置 GOPROXY。

export GOPROXY=https://goproxy.cn
推荐问题