我第一次在Go中使用原型(和原型)。
message MyProtoStruct { string description = 1; }
我有点困惑:
我应该使用方法来获取值(如 )或MyProtoStruct.GetDescription()
MyProtoStruct.GetDescription()
我应该直接使用字段(如)吗?MyProtoStruct.Description
MyProtoStruct.Description
侃侃尔雅
相关分类