go模块代理
https://github.com/goproxy/goproxy.cn
$go version
go version go1.13.12 linux/amd64
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
重置goproxy
go env -w GOPROXY
go doc
proxy
从 Github 的代码库 clone
go get -u github.com/golang/text mv $GOPATH/src/github.com/golang/text $GOPATH/src/golang.org/x/text go get -u github.com/golang/crypto mv $GOPATH/src/github.com/golang/crypto $GOPATH/src/golang.org/x/crypto
设置 GOPROXY 环境变量配置代理
例如:GOPROXY=https://goproxy.io