ITPub博客

首页 > IT职业 > IT职场 > golang安装gRpc

golang安装gRpc

IT职场 作者:sprest 时间:2021-09-09 10:08:56 0 删除 编辑

原因是这个代码已经转移到github上面了,但是代码里面的包依赖还是没有修改,还是google.golang.org这种,

所以不能使用go get的方式安装,正确的安装方式:

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/genprotocd $GOPATH/src/

go install google.golang.org/grpc



作者:小线亮亮
链接:https://www.jianshu.com/p/a94673ad10dc


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3088/viewspace-2817451/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    101
  • 访问量
    821