protobuf
protobuf copied to clipboard
skip field
type User struct {
ID uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Role Role `protobuf:"-" json:"role,omitempty"`
CreateDate *time.Time `protobuf:"bytes,2,opt,name=create_date,json=createDate,proto3,stdtime" json:"create_date,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Can this format be generated to skip fields
Can this format be generated to skip fields?