Resolve installation issues go dependencies

Proxy settings go

echo "export GOPROXY=https://goproxy.cn" >> ~/.profile && source ~/.profile

 

Github download the package of alternative golang.org package

git clone --depth = 1 https://github.com/golang/text.git $ GOPATH / src / golang.org / x

git clone --depth=1 https://github.com/golang/crypto.git $GOPATH/src/golang.org/x/crypto

git clone --depth = 1 https://github.com/golang/net.git $ GOPATH / src / golang.org / x / net

git clone --depth = 1 https://github.com/golang/sys.git $ GOPATH / src / golang.org / x / sys

git clone --depth=1  https://github.com/golang/tools.git $GOPATH/src/golang.org/x/tools

go get -u github.com/qiniu/x/log

Guess you like

Origin www.cnblogs.com/beilong/p/12128222.html