mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
encoding/xml: add docs for ignoring tag
That was supposed to be in the original CL, but missed the files. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5570052
This commit is contained in:
parent
0bb8ce2984
commit
e3ab30bbc1
2 changed files with 3 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ type Marshaler interface {
|
|||
// The XML element for a struct contains marshalled elements for each of the
|
||||
// exported fields of the struct, with these exceptions:
|
||||
// - the XMLName field, described above, is omitted.
|
||||
// - a field with tag "-" is omitted.
|
||||
// - a field with tag "name,attr" becomes an attribute with
|
||||
// the given name in the XML element.
|
||||
// - a field with tag ",attr" becomes an attribute with the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue