If you already have a json object and want to quickly create a go struct for it there's a nice tool I found: https://github.com/omissis/go-jsonschema
Fair warning, the install process is completely insane. I just downloaded a tarball instead of even bothering. The only other similar thing I could find is this website: https://mholt.github.io/json-to-go/ which seems to do the conversion with javascript.