在安装SDK时报错,缺少包的引用
#Install the app into your $GOBIN
make install
go环境变量
export GOROOT=/usr/local/go
export GOPATH=/root/go
export PATH=$PATH:$GOROOT/bin
GOROOT为安装目录 GOPATH为工作目录
golang 在 github 上建立了一个镜像库,下载github上的镜像库放入GOPATH下即可
```
mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/sync.git
git clone https://github.com/golang/text.git
git clone https://github.com/golang/net.git
git clone https://github.com/grpc/grpc-go.git $GOPATH/src/google.golang.org/grpc
```
git clone https://github.com/golang/net.git $GOPATH/src/golang.org/x/
有疑问加站长微信联系(非本文作者)