Golang V1.13之後支持通過設置變量GOPROXY來修改代理地址,默認的代理服務器
https://proxy.golang.org在國內訪問經常出現timeout
可以通過設置國內代理來加速下載
詳見:https://github.com/goproxy/goproxy.cn/blob/master/README.zh-CN.md
在終端執行即可
go env -w GOPROXY=https://goproxy.cn,direct
Golang V1.13之後支持通過設置變量GOPROXY來修改代理地址,默認的代理服務器
https://proxy.golang.org在國內訪問經常出現timeout
可以通過設置國內代理來加速下載
詳見:https://github.com/goproxy/goproxy.cn/blob/master/README.zh-CN.md
在終端執行即可
go env -w GOPROXY=https://goproxy.cn,direct