protobuf
protobuf copied to clipboard
gofast can't use google/protobuf/any.proto?
gofast can't use google/protobuf/any.proto? I got the mistake: m.Data.MarshalToSizedBuffer undefined (type *anypb.Any has no field or method MarshalToSizedBuffer) m.Data.Size undefined (type *anypb.Any has no field or method Size) m.Data.Unmarshal undefined (type *anypb.Any has no field or method Unmarshal)
fuck I can't use too
me too
Add this to your code generation process: protoc -I=. --gogofast_out=Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types
It's work, many thanks @Keithwachira