Versions in this module Expand all Collapse all v1 v1.1.0 Nov 2, 2015 Changes in this version type Lexer + func (l *Lexer) Free(n int) v1.0.0 Aug 14, 2015 Changes in this version + func EscapeAttrVal(buf *[]byte, b []byte) []byte + func EscapeCDATAVal(buf *[]byte, b []byte) ([]byte, bool) + type Lexer struct + func NewLexer(r io.Reader) *Lexer + func (l *Lexer) AttrVal() []byte + func (l *Lexer) Next() (TokenType, []byte) + func (l Lexer) Err() error + func (l Lexer) IsEOF() bool + type Token struct + AttrVal []byte + Data []byte + type TokenBuffer struct + func NewTokenBuffer(l *Lexer) *TokenBuffer + func (z *TokenBuffer) Peek(i int) *Token + func (z *TokenBuffer) Shift() *Token + type TokenType uint32 + const AttributeToken + const CDATAToken + const CommentToken + const DOCTYPEToken + const EndTagToken + const ErrorToken + const StartTagClosePIToken + const StartTagCloseToken + const StartTagCloseVoidToken + const StartTagPIToken + const StartTagToken + const TextToken + func (tt TokenType) String() string