Versions in this module Expand all Collapse all v2 v2.9.17 May 14, 2021 Changes in this version + var DataURIEncodingTable = [256]bool + var ErrBadDataURI = errors.New("not a data URI") + var URLEncodingTable = [256]bool + func Copy(src []byte) (dst []byte) + func DataURI(dataURI []byte) ([]byte, []byte, error) + func DecodeURL(b []byte) []byte + func Dimension(b []byte) (int, int) + func EncodeURL(b []byte, table [256]bool) []byte + func EqualFold(s, targetLower []byte) bool + func IsAllWhitespace(b []byte) bool + func IsNewline(c byte) bool + func IsWhitespace(c byte) bool + func Mediatype(b []byte) ([]byte, map[string]string) + func Number(b []byte) int + func Position(r io.Reader, offset int) (line, col int, context string) + func Printable(r rune) string + func QuoteEntity(b []byte) (quote byte, n int) + func ReplaceEntities(b []byte, entitiesMap map[string][]byte, revEntitiesMap map[byte][]byte) []byte + func ReplaceMultipleWhitespace(b []byte) []byte + func ReplaceMultipleWhitespaceAndEntities(b []byte, entitiesMap map[string][]byte, revEntitiesMap map[byte][]byte) []byte + func ToLower(src []byte) []byte + func TrimWhitespace(b []byte) []byte + type Error struct + Column int + Context string + Line int + Message string + func NewError(r io.Reader, offset int, message string, a ...interface{}) *Error + func NewErrorLexer(l *Input, message string, a ...interface{}) *Error + func (e *Error) Error() string + func (e *Error) Position() (int, int, string) + type Input struct + func NewInput(r io.Reader) *Input + func NewInputBytes(b []byte) *Input + func NewInputString(s string) *Input + func (z *Input) Bytes() []byte + func (z *Input) Err() error + func (z *Input) Len() int + func (z *Input) Lexeme() []byte + func (z *Input) Move(n int) + func (z *Input) Offset() int + func (z *Input) Peek(pos int) byte + func (z *Input) PeekErr(pos int) error + func (z *Input) PeekRune(pos int) (rune, int) + func (z *Input) Pos() int + func (z *Input) Reset() + func (z *Input) Restore() + func (z *Input) Rewind(pos int) + func (z *Input) Shift() []byte + func (z *Input) Skip()