encoding/xml: XMLName value of embedded structs type not used in Marshaller #38260
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Try to use XMLName in embedded type play stackoverflow
What did you expect to see?
<c:test></c:test>
What did you see instead?
<Test></Test>
It fails on go1.14.1\src\encoding\xml\marshal.go: can't cast to xml.Name
I also find a reason for this error https://golang.org/src/encoding/xml/typeinfo.go
Need to add idx of embed type to slice
The text was updated successfully, but these errors were encountered: