mirror of
https://github.com/golang/go
synced 2024-11-14 05:30:21 -07:00
encoding/xml: document that embedded interfaces look like non-embedded ones
Fixes #69941 Change-Id: Icc3c88d57c14fa9ca203c693d67f144686fed8cc Reviewed-on: https://go-review.googlesource.com/c/go/+/621076 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
721c04ae4e
commit
e3d372aea8
@ -62,6 +62,8 @@ const (
|
||||
// string of length zero.
|
||||
// - an anonymous struct field is handled as if the fields of its
|
||||
// value were part of the outer struct.
|
||||
// - an anonymous struct field of interface type is treated the same as having
|
||||
// that type as its name, rather than being anonymous.
|
||||
// - a field implementing [Marshaler] is written by calling its MarshalXML
|
||||
// method.
|
||||
// - a field implementing [encoding.TextMarshaler] is written by encoding the
|
||||
|
Loading…
Reference in New Issue
Block a user