Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: Marshal fails to handle conflicting tags #18564
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
This appears to be working as intended. The comment around the code that implements the error says:
Having conflicting name tags in the code is incorrect and this error is designed to point that out.
Hm then maybe this is just a documentation issue?
The documentation i linked gave me the impression that there are 5 different ways to name an element and it would be able to handle conflicts by the order of preference.
I would argue that it is a little bit confusing that some conflicts can be handled, but others can't.