环境变量
# 通过环境变量GOPROXY设置代理
export GOPROXY=https://goproxy.io
# go mod功能开关,默认是auto,在gopath中不启用
# 可设置为on强制启用
export GO111MODULE=on
# 通过环境变量GOPROXY设置代理
export GOPROXY=https://goproxy.io
# go mod功能开关,默认是auto,在gopath中不启用
# 可设置为on强制启用
export GO111MODULE=on