]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: allow embedded non-structs
authorRuss Cox <rsc@golang.org>
Tue, 12 Mar 2013 03:58:20 +0000 (23:58 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 12 Mar 2013 03:58:20 +0000 (23:58 -0400)
commitaa81eb5901abc545bc8ff14833f52c3e798f0b90
tree76628c4d397085c255ac2c55015e5110a0ad07ce
parent864278ad90383182456feb79df3cd62fe4f9cf4d
encoding/xml: allow embedded non-structs

The old code just assumed that the only thing
you can embed is a struct. Not true.

Fixes #3803.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7743043
src/pkg/encoding/xml/marshal_test.go
src/pkg/encoding/xml/typeinfo.go