1. 程式人生 > 實用技巧 >go proxy

go proxy

golang 配置goproxy 幾個可選的地址

對於golang 語言的開發,對於國內來說有點被動,需要想各種方法,一般的解決方法如下:

  • 使用代理工具(翻牆)
  • 配置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