刘贵学博客

Go get 无法获取 golang.org 里的资源

因为要翻墙,很麻烦。有比较简单的办法

在 GOPATH 下新建 golang.org/x 目录,cd $GOPATH/golang.org/x


git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/exp.git
git clone https://github.com/golang/image.git
git clone https://github.com/golang/lint.git
git clone https://github.com/golang/net.git
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/text.git
git clone https://github.com/golang/tools.git