You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
http://play.golang.org/p/t897gzvOxP
What is the expected output?
<inner></inner>
<outer><inner></inner></outer>
What do you see instead?
<inner></inner>
<outer></outer>
Which compiler are you using (5g, 6g, 8g, gccgo)?
go test
Which operating system are you using?
Windows 7, 32bit
Which version are you using? (run 'go version')
go version go1
Please provide any additional information below.
The "Any" field is tagged ",any" for the benefit of Unmarshal -- I
expect the tag (but not the entire field) to be ignored by Marshal.
The text was updated successfully, but these errors were encountered:
I've attached a patch. However it fails the adjusted test:
- ExpectXML:
`<a><nested><value>known</value></nested></a>`,
+ ExpectXML:
`<a><nested><value>known</value></nested><AnyField><unknown/></AnyField></a>`,
Some strange things going on with the parent nesting, I wouldn't have expected this from
reading the code.
Attached is a patch that includes the test, too. I couldn't find any documentation that
seemed relevant to update, but this seems to have been deliberately omitted, so there
may be a pitfall somewhere that we should mention.
Another example of code that seems like it should work:
http://play.golang.org/p/3RGBUECm7z
by chris.jones.yar:
The text was updated successfully, but these errors were encountered: