• Leigh McCulloch's avatar
    encoding/xml: add Marshal doc about name conflicts · 65a864a6
    Leigh McCulloch authored
    The docs for xml.Marshal state that the XML elements name is derived
    from one of five locations in a specific order of precedence, but does
    not mention that if the field is a struct type and has its name defined
    in a tag and in the types XMLName field that an error will occur. This
    is documented in the structFieldInfo function but not in the function
    documentation, and the existing docs in Marshal are misleading without
    this behavior being discussed.
    
    Fixes #18564
    
    Change-Id: I29042f124a534bd1bc993f1baeddaa0af2e72fed
    Reviewed-on: https://go-review.googlesource.com/76321Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    65a864a6
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...