设置go包代理

在运行go程序的时候,

xxxx

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.
出现错误

是需要设置代理

执行命令:

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

来源:http://www.shanhubei.com/archives/2846.html

posted @ 2023-11-18 15:04  珊瑚贝博客  阅读(28)  评论(0编辑  收藏  举报