go get卡住慢的问题解决

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/

你可能感兴趣的:(go get卡住慢的问题解决)