proto 文件生成错误处理

date
May 2, 2022
slug
proto 文件生成错误处理
status
Published
tags
proto
summary
proto 文件生成错误处理
type
Post
 
 
 
 
生成的错误
protoc --go_out=. *.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.
  • -go_out: protoc-gen-go: Plugin failed with status code 1.
 
*.proto文件添加
 
option go_package = "./";

© acorn 2021 - 2026