mailru / easyjson

Fast JSON serializer for golang.
MIT License
4.46k stars 422 forks source link

Allow using pointer receivers, and use struct pointers for input parameters #376

Open misberner opened 2 years ago

misberner commented 2 years ago

This PR changes two things:

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 .

misberner commented 2 years ago

Could any of the maintainers please take a look at this?

misberner commented 1 year ago

@bulletmys @GoWebProd would it be possible to take a look at this PR?

misberner commented 1 year ago

@gobwas any chance you could look at this?