https://github.com/protocolbuffers/protobuf/releases
报错:
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.
------------------------------------------------------------------
解决方案:
1、安装
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
2、拷贝,把生成的protoc-gen-go-grpc.exe 文件copy到 goroot目录下,即C:\Program Files\Go\bin\
最后再测试一遍,通过。
protoc -I . helloworld.proto --go_out=plugins=grpc:.