golang 国内的代理总是一个很头疼的问题,这里汇总一下国内几个可用的代理,到时候有些包下不下来就换几个代理多试试
代理1:阿里云 Go Module 代理
传送门:https://mirrors.aliyun.com/goproxy/
简介
go module公共代理仓库,代理并缓存go模块。你可以利用该代理来避免DNS污染导致的模块拉取缓慢或失败的问题,加速你的构建
使用帮助
- 使用go1.11以上版本并开启go module机制
- 导出GOPROXY环境变量
export GOPROXY=https://mirrors.aliyun.com/goproxy/
代理2:Goproxy
传送门:https://goproxy.io/
In Linux or macOS, you can execute the below commands.
# Enable the go modules feature
export GO111MODULE=on
# Set the GOPROXY environment variable

最低0.47元/天 解锁文章
2592

被折叠的 条评论
为什么被折叠?



