go GOPROXY=http://goproxy.io 设置

export GO111MODULE=on
export GOPROXY=http://goproxy.io
go mod tidy
go mod vendor

export GO111MODULE=off
make install

#(官方维护,香港节点,该地址可稳定访问)
export GOPROXY=http://goproxy.io 

# (该地址速度快,但有些包版本无法获取)
export GOPROXY=http://mirrors.aliyun.com/goproxy/ 

# (微软cdn节点,也很稳定,快速) 推荐 
export GOPROXY=https://athens.azurefd.net   

export GOPROXY=https://gocenter.io
原文地址:https://www.cnblogs.com/zccst/p/15264525.html