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

Generate struct with pointers #26

Open
katcipis opened this issue Aug 13, 2015 · 0 comments
Open

Generate struct with pointers #26

katcipis opened this issue Aug 13, 2015 · 0 comments

Comments

@katcipis
Copy link

I'm using gojson here and I need to check for some obligatory fields on my JSON. AFAIK the only way to do that using only Go (no other third party tool that validates the JSON based on a schema) is to use pointers on the struct, so I can check it for nil after the parsing.

Is there a way to generate the struct with pointers right now ? If it does not have support to this, does it even make sense ? :-)

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

No branches or pull requests

1 participant