Versions in this module Expand all Collapse all v0 v0.2.1 Aug 29, 2018 Changes in this version + const MinRead + var ErrTooLarge = errors.New("bytes.Buffer: too large") + var HTMLAutoClose = htmlAutoClose + var HTMLEntity = htmlEntity + func Compare(a, b []byte) int + func Equal(a, b []byte) bool + func IndexByte(s []byte, c byte) int + func Unmarshal(data []byte, v interface{}) error + func WithAttrPrefix(a string) func(x *xmlParser) + func WithElemPrefix(e string) func(x *xmlParser) + func WithTextPrefix(e string) func(x *xmlParser) + type Attr struct + Name Name + Value string + type Buffer struct + func NewBuffer(buf []byte) *Buffer + func NewBufferString(s string) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Cap() int + func (b *Buffer) Grow(n int) + func (b *Buffer) Len() int + func (b *Buffer) Next(n int) []byte + func (b *Buffer) Read(p []byte) (n int, err error) + func (b *Buffer) ReadByte() (c byte, err error) + func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) + func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error) + func (b *Buffer) ReadRune() (r rune, size int, err error) + func (b *Buffer) ReadString(delim byte) (line string, err error) + func (b *Buffer) Reset() + func (b *Buffer) String() string + func (b *Buffer) Truncate(n int) + func (b *Buffer) UnreadByte() error + func (b *Buffer) UnreadRune() error + func (b *Buffer) Write(p []byte) (n int, err error) + func (b *Buffer) WriteByte(c byte) error + func (b *Buffer) WriteRune(r rune) (n int, err error) + func (b *Buffer) WriteString(s string) (n int, err error) + func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) + type CharData []byte + func (c CharData) Copy() CharData + type Comment []byte + func (c Comment) Copy() Comment + 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 (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeElement(v interface{}, start *StartElement) error + func (d *Decoder) InputOffset() int64 + func (d *Decoder) RawToken() (Token, error) + func (d *Decoder) Skip() error + func (d *Decoder) Token() (t Token, err error) + type Directive []byte + func (d Directive) Copy() Directive + type EndElement struct + Name Name + type Name struct + Local string + Space string + type Option func(x *xmlParser) + type ProcInst struct + Inst []byte + Target string + func (p ProcInst) Copy() ProcInst + type StartElement struct + Attr []Attr + Name Name + func (e StartElement) Copy() StartElement + func (e StartElement) End() EndElement + type SyntaxError struct + Line int + Msg string + func (e *SyntaxError) Error() string + type TagPathError struct + Field1 string + Field2 string + Struct reflect.Type + Tag1 string + Tag2 string + func (e *TagPathError) Error() string + type Token interface + func CopyToken(t Token) Token + type UnmarshalError string + func (e UnmarshalError) Error() string + type Unmarshaler interface + UnmarshalXML func(d *Decoder, start StartElement) error + type UnmarshalerAttr interface + UnmarshalXMLAttr func(attr Attr) error + type XMLParser interface + Init func([]byte) error + Reset func() error + func NewXMLParser(options ...Option) XMLParser