在helloworld.proto文件同级目录下 执行
protoc -I . helloworld.proto --go_out=plugins=grpc:.
报错信息
protoc-gen-go: invalid Go import path "." for "helloworld.proto"
The import path must contain at least one forward slash ('/') character.
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.
各位大佬救救孩子吧
路径必须包含一个/ .改成./ 试试
protoc, protoc-gen-go 都已安装
您好,我是有问必答小助手,你的问题已经有小伙伴为您解答了问题,您看下是否解决了您的问题,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632