vendredi 12 mai 2023

xml.Unmarshal unsupported type struct

I'm getting an error where I cannot xml.Marshal a struct made at runtime with reflect.

It is giving me the following error:

xml: unsupported type: struct { ... }

Here is my go-playground link.

Anyone have any idea why this isn't working?
What am I missing about the implementation?
It works fine for JSON and YAML.





Aucun commentaire:

Enregistrer un commentaire