You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ? :-)
The text was updated successfully, but these errors were encountered:
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 ? :-)
The text was updated successfully, but these errors were encountered: