go golang 配置国内源,解决go get卡住
💡
原文中文,约200字,阅读约需1分钟。
📝
内容提要
国内提供七牛云和阿里云的Go代理源,用户可通过设置GOPROXY来更好地管理Go模块。
🎯
关键要点
-
国内提供七牛云和阿里云的Go代理源。
-
用户可通过设置GOPROXY来更好地管理Go模块。
-
七牛云的Go代理源网址为https://goproxy.cn。
-
阿里云的Go代理源网址为https://developer.aliyun.com/mirror/go。
-
可以通过命令设置GOPROXY:go env -w GOPROXY=https://goproxy.cn,https://developer.aliyun.com/mirror/go,direct。
➡️