Skip to content

Conversation

StevenYCChou
Copy link

Signed-off-by: Yen-Cheng Chou [email protected]

@StevenYCChou
Copy link
Author

@roidelapluie PTAL.

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While there's a bug, I'm not sure that the fix is correct. I believe that MarshalJSON() needs to be changed to a value receiver function to work properly.
I've experiment a bit with the Go playground:
https://go.dev/play/p/P9nFVvIu-Mb

@roidelapluie
Copy link
Member

While there's a bug, I'm not sure that the fix is correct. I believe that MarshalJSON() needs to be changed to a value receiver function to work properly. I've experiment a bit with the Go playground: https://go.dev/play/p/P9nFVvIu-Mb

I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants