设置 GOPROXY

bash 环境变量

echo "export GO111MODULE=on" >> ~/.profile
echo "export GOPROXY=https://goproxy.io" >> ~/.profile
source ~/.profile