go get卡住慢的问题解决

2020-03-02  本文已影响0人  abelweiwencai

linux或者mac在shell执行

# Enable the go modules feature
export GO111MODULE="on"
# Set the GOPROXY environment variable
export GOPROXY="https://goproxy.io"

windows

# Enable the go modules feature
$env:GO111MODULE="on"
# Set the GOPROXY environment variable
$env:GOPROXY="https://goproxy.io"

参考:
https://goproxy.io/
https://mirrors.aliyun.com/goproxy/

上一篇 下一篇

猜你喜欢

热点阅读