golang 配置goproxy 幾個可選的地址

golang 配置goproxy 幾個可選的地址

對於golang 語言的開發,對於國內來講有點被動,須要想各類方法,通常的解決方法以下: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
 
說明

國內通常來講使用阿里雲的基本夠用了,可是有時阿里雲也會很差使,後邊的幾個能夠能夠作爲後備,以備
不時之需,以上是我目前發現的一些比較好的,後期有的ide

參考資料

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

相關文章
相關標籤/搜索