Versions in this module Expand all Collapse all v1 v1.0.0 Mar 15, 2022 Changes in this version + const Header + var HTMLAutoClose []string = htmlAutoClose + var HTMLEntity map[string]string = htmlEntity + func DeleteNSPrefix(tag string) (string, error) + func Escape(w io.Writer, s []byte) + func EscapeText(w io.Writer, s []byte) error + func Marshal(v interface{}) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func NewTokenReader(r xml.TokenReader, start xml.StartElement) xml.TokenReader + func Unmarshal(data []byte, v interface{}) error + type Decoder struct + AutoClose []string + CharsetReader func(charset string, input io.Reader) (io.Reader, error) + DefaultSpace string + Entity map[string]string + Strict bool + func NewDecoder(r io.Reader) *Decoder + func NewTokenDecoder(t xml.TokenReader, tokens ...xml.StartElement) *Decoder + func (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeElement(v interface{}, start *xml.StartElement) error + func (d *Decoder) InputOffset() int64 + func (d *Decoder) RawToken() (xml.Token, error) + func (d *Decoder) Skip() error + func (d *Decoder) Token() (xml.Token, error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(v interface{}) error + func (enc *Encoder) EncodeElement(v interface{}, start xml.StartElement) error + func (enc *Encoder) EncodeToken(t xml.Token) error + func (enc *Encoder) Flush() error + func (enc *Encoder) Indent(prefix, indent string) + type Marshaler interface + MarshalXML func(e *Encoder, start xml.StartElement) error + type MarshalerAttr interface + MarshalXMLAttr func(name xml.Name) (xml.Attr, error) + type SyntaxError struct + Line int + Msg string + func (e *SyntaxError) Error() string + type Tag struct + Prefix string + Value string + func ParseTag(s string) ([]Tag, error) + func (t Tag) String() string + type TagPathError struct + Field1 string + Field2 string + Struct reflect.Type + Tag1 string + Tag2 string + func (e *TagPathError) Error() string + type UnmarshalError string + func (e UnmarshalError) Error() string + type Unmarshaler interface + UnmarshalXML func(d *Decoder, start xml.StartElement) error + type UnmarshalerAttr interface + UnmarshalXMLAttr func(attr xml.Attr) error + type Utils struct + Marshal bool + type XMLDecoder interface + Decode func(v interface{}) error + DecodeElement func(v interface{}, start *xml.StartElement) error + RawToken func() (xml.Token, error) + Skip func() error + Token func() (xml.Token, error) + type XMLEncoder interface + Encode func(v interface{}) error + EncodeElement func(v interface{}, start xml.StartElement) error + EncodeToken func(t xml.Token) error + Flush func() error + Indent func(prefix, indent string) + type XMLTag struct + Flags []string + Namespace string + Tags []Tag + func ParseXMLTag(s string) (*XMLTag, error) + func (t *XMLTag) DeleteNSPrefix() + func (t *XMLTag) String() string