我很难弄清楚protoc
命令和 go 插件。
有什么区别:
protoc \ # Directory where you want the compiler to write your Go output. --go_out=. # vs ? --go_opt=paths=source_relative # vs ? --go-grpc_out=. # vs ? --go-grpc_opt=paths=source_relative
如果--go_opt
生成
<name>.pb.go
文件
并--go-grpc_opt
生成
<name>_grpc.pb.go
文件
为什么还要有--go_out
?
您能否对 protoc 有所了解 -文档没有说什么--go-grpc_opt
?
并且protoc -h
甚至不列出作为 OUT_DIR 吗?
注意:我使用此文档安装
侃侃无极