Documentation
¶
Overview ¶
Package xmlattrtest checks how encoding/xml writes a type as attribute.
It is only imported from _test.go files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NilPointer ¶
NilPointer checks that encoding/xml leaves out a nil *T attribute field without omitempty, and that a non-nil *T attribute field writes each of values like a T field does. encoding/xml calls a value receiver MarshalText through a nil pointer attribute field and panics, unless *T implements xml.MarshalerAttr, which encoding/xml checks first.
Types ¶
This section is empty.