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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM