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:.
————————————————
版权声明:本文为CSDN博主「bluewelkin」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/bluewelkin/article/details/124410774
windows下找端口 小技巧
场景一:找端口
netstat -aon|findstr "8080"
net start RabbitMQ
netstat -aon 所有端口
KILL 掉进程
taskkill /pid 21488
参考文章: