golang 代理

windows:
set GOPROXY=https://goproxy.cn
set GO111MODULE=on

 linux:

  • 阿里云
    配置如下:
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
posted @ 2021-07-26 16:30  selfim写博客  阅读(124)  评论(0编辑  收藏  举报