我很难弄清楚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 吗?
注意:我使用此文档安装
qq_花开花谢_0
侃侃无极
随时随地看视频慕课网APP
相关分类