We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The standard Json library could encode embedded: https://play.golang.org/p/rA7yHzBYRk
In a case of Facebook' event when one gets it from user it may contain extra fields (rsvp_status) so I've tried to embed one into the other:
type FbEvent struct { ID string Name string } type FbUserEvent struct { *FbEvent RsvpStatus string }
I've also tried with non-pointer FbEvent. In both cases the fields from FbEvent are empty.
FbEvent
The text was updated successfully, but these errors were encountered:
It sounds like a reasonable feature request. It's not supported right now. I can implement it soon.
Sorry, something went wrong.
I got it, was super easy. Will prepare a PR soon. Are you OK with it?
741221b
I have a better solution. :)
Thanks for your PR anyway.
No branches or pull requests
The standard Json library could encode embedded:
https://play.golang.org/p/rA7yHzBYRk
In a case of Facebook' event when one gets it from user it may contain extra fields (rsvp_status) so I've tried to embed one into the other:
I've also tried with non-pointer
FbEvent
. In both cases the fields fromFbEvent
are empty.The text was updated successfully, but these errors were encountered: