废话不多说,直接开讲
还多新手朋友在编译go的过程中是不是经常会遇到这样的报错
module ***: Get “https://proxy.golang.org/***”: dial tcp 172.217.160.113:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
你可以试着访问一下proxy.golang.org,怎么样,访问不了吧,没错,这是被我们伟大的长城防火墙给屏蔽了,你需要改成我们国内可用的代理地址
直接在命令行执行
go env -w GOPROXY=https://goproxy.cn
然后再次尝试执行你的go命令试试看,搞定了吧
转载:https://blog.csdn.net/weixin_37254196/article/details/110823033
查看评论