![](https://xiahualou.oss-cn-shanghai.aliyuncs.com/img/20191219143645.png)
![](https://xiahualou.oss-cn-shanghai.aliyuncs.com/img/20191219143715.png)
![](https://xiahualou.oss-cn-shanghai.aliyuncs.com/img/20191219143739.png)
![](https://xiahualou.oss-cn-shanghai.aliyuncs.com/img/20191219143756.png)
上面的的是通用的,可以生成java php python等等之类的通用版本
Go版本安装
go get -v github.com/golang/protobuf/protoc-gen-go
![](https://xiahualou.oss-cn-shanghai.aliyuncs.com/img/20191219143814.png)
protoc --go_out=../services Prod.proto 通过这个命令根据proto文件生成中间文件
protoc --go_out=plugins=grpc:../services Prod.proto 生成grpc中间文件
posted @
2019-12-19 21:56
离地最远的星
阅读(
272)
评论()
编辑
收藏
举报