Khan / genqlient

a truly type-safe Go GraphQL client
MIT License
1.03k stars 99 forks source link

Update template Un/MarshalJSON to not use pointer receiver #254

Closed mdzhang closed 1 year ago

mdzhang commented 1 year ago

See this

W/o this, json.Marshal does not work as expected, though x.MarshalJSON() will.

I have: