git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net git clone https://github.com/golang/text.git $GOPATH/src/github.com/golang/text git clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools git clone https://github.com/golang/crypto.git $GOPATH/src/github.com/golang/crypto ln -s $GOPATH/src/github.com/golang/ $GOPATH/src/golang.org/x
go env 查看 go path
进入或创建目录:
$GOPATH/src/golang.org/x
进入目录,git clone github.com上项目代替
git clone https://github.com/golang/sys.git git clone https://github.com/golang/net.git git clone https://github.com/golang/text.git git clone https://github.com/golang/lint.git git clone https://github.com/golang/tools.git git clone https://github.com/golang/crypto.git