Go开发下,备用的官方镜像
Opened this issue · 2 comments
axetroy commented
由于某些原因,无法下载go官方包。
此时应该从官方的Github组织下载镜像
GO环境变量的设置
export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# 自定义GOPATH
export GOPATH=$HOME/go/src/github.com/axetroy/lib
golang.org/x/text
Go text processing support
cd $GOPATH/src/golang/x
git clone https://github.com/golang/text
golang.org/x/sys
Go packages for low-level interaction with the operating system
cd $GOPATH/src/golang/x
git clone https://github.com/golang/sys
golang.org/x/net
Go supplementary network libraries
cd $GOPATH/src/golang/x
git clone https://github.com/golang/net
golang.org/x/crypto
Go supplementary cryptography libraries
cd $GOPATH/src/golang/x
git clone https://github.com/golang/crypto
golang.org/x/oauth2
Go OAuth2
cd $GOPATH/src/golang/x
git clone https://github.com/golang/oauth2
golang.org/x/tools
Go Tools
plh97 commented
已肉翻, 具备上网条件.
axetroy commented
@pengliheng 恭喜恭喜🎉🎉🎉