Golang/Gin 学习

Golang-05 Centos环境篇

2019-09-18  本文已影响0人  国服最坑开发
export GOPROXY=https://goproxy.io
https://goproxy.cn,direct
cd $GOPATH/src
mkdir -p golang.org/x
cd golang.org/x
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/tools.git

# golang安装gRpc
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/net
git clone https://github.com/golang/text.git $GOPATH/src/golang.org/x/text
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
git clone https://github.com/google/go-genproto.git $GOPATH/src/google.golang.org/genproto
cd $GOPATH/src/
go install google.golang.org/grpc
# grpcurl 安装
 go get github.com/fullstorydev/grpcurl
 go install github.com/fullstorydev/grpcurl/cmd/grpcurl
上一篇下一篇

猜你喜欢

热点阅读