go get的时候遇到墙

方法一:下载github上的镜像库放入GOPATH

mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/sync.git
git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/sys.git

方法二:如果使用的开发IDE是goland,那么 打开 FILE -> setting -> Go Modules 选项 ,在proxy 选项上填写 "https://goproxy.io"

go get的时候遇到墙_第1张图片 

你可能感兴趣的:(golang)