设置 GOPROXY bash 环境变量 cat << EOF >> ~/.profile export GO111MODULE=on export GOPROXY=https://goproxy.io EOF source ~/.profile