Skip to content
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

Handle pointers to anonymous structs when (un)mashaling #139

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Handle pointers to anonymous structs when (un)mashaling #139

merged 1 commit into from
Aug 25, 2020

Conversation

gir
Copy link

@gir gir commented Aug 20, 2020

Pointer embedded structs weren't handled so I added it. This should not break existing (un)marshaling and should work like json.Marshal and json.Unmarshal.

unexported non-pointer unexported pointer exported non-pointer exported pointer
marshal Y Y Y Y
unmarshal Y N Y Y

@guregu
Copy link
Owner

guregu commented Aug 21, 2020

Thanks for the PR! I’ll try to get this in over the weekend

@guregu guregu merged commit b69e5ae into guregu:master Aug 25, 2020
@guregu
Copy link
Owner

guregu commented Aug 25, 2020

Released v1.9.1 which includes this. I cleaned up the tests a bit too. Thanks again for the PR!

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.

2 participants