metaleap / go-xsd

[stable since 2013] a lib for loading XML Schema Definition (XSD) files ➜ plus, a tool `makepkg` to code-generate from any *.xsd your Go package with all needed `struct`s to readily `xml.Unmarshal()` documents into, based on the XSD's schema definitions. NOT REALLY MAINTAINED FOR YEARS NOW: try the forks if running into issues.
http://www.reddit.com/r/golang/comments/12g6sl/is_there_a_tool_that_generates_go_source_code_for/
MIT License
216 stars 66 forks source link

Ensure import names are valid Go identifiers #21

Closed sprin closed 8 years ago

sprin commented 8 years ago

Invalid Go identifiers were being generated, specifically with the common case of hypenated XSD import names.

Example: https://nvd.nist.gov/schema/vulnerability_0.4.1.xsd