步骤
1.安装grpc-go ,go get -u google.golang.org/grpc
2.安装protobuf(protoc),https://github.com/protocolbuffers/protobuf/releases
3.将release的压缩包解压,放在任意位置,并且将bin目录的地址加入环境变量path中
4.使用终端进行安装验证,protoc --version
5.安装protoc-gen-go插件,go get github.com/golang/protobuf/protoc-gen-go
资源索引
1.官方文档:
https://developers.google.com/protocol-buffers/docs/overview
2.中文教程
https://blog.csdn.net/hulinku/article/details/80827018