阿......嚏 2022-11-11 20:52 采纳率: 18.2%
浏览 11
已结题

go编译.proto文件

const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

go利用 protoc 编译.proto文件后提示Const initializer 'protoimpl.EnforceVersion(20 - protoimpl.MinVersion)' is not a constant?

这是什么原因造成的?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 11月19日
    • 创建了问题 11月11日