Unmarshal xml into custom struct – how to handle different structures for the same tag
I have a .owl
like this simplified example:
Is it possible to declare some Marshall, Unmarshall methods for map[string]string without defining a new type?
From an OpenApi spec, I’ve generated 150 types with the help of quicktype.
I can use them easily while I’m serializing them in json, but a new customer wish is that serialization can be done in xml too.
Merge Go structs definition
I have many xml files generated by a legacy application, no xsd schema available. The general structure is similar, but some files may have more (or less) fields than others.
I want to parse them using Go.