其他分享
首页 > 其他分享> > 错误系列-protofuf

错误系列-protofuf

作者:互联网

 

hello.proto

syntax = "proto3";
package main;
message String {
  string value = 1;
}

 

 

命令

protoc --go_out=. hello.proto

 

报错信息

$ protoc --go_out =. hello.proto 
protoc-gen-go: unable to determine Go import path for "hello.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#p
ackage for more information.

--go_out: protoc-gen-go: Plugin failed with status code 1.

 

标签:protoc,系列,错误,proto,--,protofuf,go,hello,out
来源: https://www.cnblogs.com/zexin88/p/16229093.html