美文网首页Golang/Gin 学习
Golang-05 Centos环境篇

Golang-05 Centos环境篇

作者: 国服最坑开发 | 来源:发表于2019-09-18 18:57 被阅读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
    

    相关文章

      网友评论

        本文标题:Golang-05 Centos环境篇

        本文链接:https://www.haomeiwen.com/subject/btzsyctx.html