vim /etc/profile
export GO11MODULE=on
export GO111MODULE=on
export GOPROXY=https://goproxy.io
source /etc/profile
vim /etc/profile
export GO11MODULE=on
export GO111MODULE=on
export GOPROXY=https://goproxy.io
source /etc/profile
转载于:https://www.cnblogs.com/wangbin/p/11563674.html