recently I am planing to do a project using Go. My problem is : given a XSD file, how to auto-generate structs in Go to represent the XML elements. It is similar to using 'xjc' to generate java classes from XSD. So is there any tools or packages to do this in Go?
Thanks in advance.
Looks like it might need some TLC for 1.2 support, but there's: https://github.com/metaleap/go-xsd
Which has a set of example packages that have been generated for different common XML formats: https://github.com/metaleap/go-xsd-pkg