golang 配置goproxy 几个可选的地址

对于golang 语言的开发,对于国内来说有点被动,需要想各种方法,一般的解决方法如下:

  • 使用代理工具(FQ)
  • 配置goproxy

目前发现的几个不错的goproxy

  • 阿里云
    配置如下:
 
export GOPROXY=https://mirrors.aliyun.com/goproxy/
  • nexus社区提供的
    配置如下:
export GOPROXY=https://gonexus.dev
  • goproxy.io 的
    配置如下:
export GOPROXY=https://goproxy.io/
  • 基于athens的公共服务
    配置如下:
export GOPROXY=https://athens.azurefd.net

  • 官方提供的(jfrog,golang)
export GOPROXY=https://gocenter.io
export GOPROXY=https://proxy.golang.org

  • 七牛云赞助支持的
export GOPROXY=https://goproxy.cn
 
说明

国内一般来说使用阿里云的基本够用了,但是有时阿里云也会不好使,后边的几个可以可以做为后备,以备
不时之需,以上是我目前发现的一些比较好的,后期有的

参考资料

https://goproxy.io
https://gonexus.dev/
https://mirrors.aliyun.com/goproxy/
https://docs.gomods.io

posted on 2019-08-27 16:40  荣锋亮  阅读(17611)  评论(0编辑  收藏  举报

导航