protobuf-go
protobuf-go copied to clipboard
Go support for Google's protocol buffers
Since protobuf generates go files, json will append an omitempty , which is very annoying. Although protojson can handle this, but it encodes 64-bits integers into string. This still doesn't...
anypb.UnmarshalTo
Thank you for your interest into contributing to this project. Unfortunately this project does not accept GitHub pull requests as the source-of-truth for this project is hosted at https://go.googlesource.com/protobuf. This...
For systems that send in lowercase enums such as in API requests, this option is helpful to first uppercase the encoded value before doing a lookup for the enum by...
Oneof values should include json tags to use proper camelCase name and can be safely omitted when we're handling the interface.
https://github.com/protocolbuffers/protobuf-go/commit/70db1e1de28451dbcc3877e388fda2fbb9e04e00#diff-4bfd19b0e2b567c0f35f87a774a43846bc5b549661d952fb1177867cd762e6ba made it so `DiscardUnknown` also applied to enum values following the discussion https://github.com/golang/protobuf/issues/1208 to comply with the C++ behavior. The comment by https://github.com/golang/protobuf/issues/1208#issuecomment-698837670 directly applies to my situation in...
closes golang/protobuf#1638 This fixes panics on comparison of message embed structs. Previously, message embed struct is treated as message. There were two problems. * When embed message is nil, panics...
Just thought I'd contribute some typo fixes that I stumbled on. Nothing controversial (hopefully). Use the following command to get a quick and dirty summary of the specific corrections made:...
This adds a Merge option to prototext.UnmarshalOptions to match proto.UnmarshalOptions. This is particularly useful when needing to read multiple textproto files of the same format that wrap a single repeated...