It adds a boolean ptr_receivers flag (default false), that, when set to true, causes generated Marshal[Easy]JSON methods to be generated with a pointer receiver instead of a value receiver.
It causes internal, generated marshaling functions to expect input structs to be passed as pointers instead of values.
This PR unconditionally reverts the effect of #15 on the generated internal functions, and allows conditionally reverting the effect of #15 on the generated external (exported) methods.
The motivation is to allow easyjson to work with the new Google protobuf API (see fixed issue).
This PR changes two things:
ptr_receivers
flag (defaultfalse
), that, when set to true, causes generatedMarshal[Easy]JSON
methods to be generated with a pointer receiver instead of a value receiver.This PR unconditionally reverts the effect of #15 on the generated internal functions, and allows conditionally reverting the effect of #15 on the generated external (exported) methods.
The motivation is to allow easyjson to work with the new Google protobuf API (see fixed issue).
Fixes #348 .