-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Protocol Buffers #348
Comments
use gogo protobuf. |
@FJSDS Thanks for the suggestion, but gogo protobuf is not always a suitable alternative. It does not, for example, support optional fields in proto3. |
+1. It should hopefully marshal to the same as https://pkg.go.dev/google.golang.org/protobuf/encoding/protojson. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Easyjson does not work with structs generated by the Protocol Buffers go generator (protoc-gen-go).
The problem is that easyjson generates the
MarshalEasyJSON
method with a by-value receiver (introduced in #15), but structs generated by protoc-gen-go shouldn't be copied.Using a by-reference receiver should solve this issue.
The text was updated successfully, but these errors were encountered: