proto编译时出错
终端报错
protoc-gen-go: unable to determine Go import path for "person.proto"
Please specify either:
• a "go_package" option in the .proto source file, or
• a "M" argument on the command line.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
--go_out: protoc-gen-go: Plugin failed with status code 1.
错误分析
无法确定GO的导入路径
- 在proto的文件中指定明确的路径
- 或者在命令行中加入"M"参数</