Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + var ErrBadDataURI = errors.New("not a data URI") + func Copy(src []byte) (dst []byte) + func DataURI(dataURI []byte) ([]byte, []byte, error) + func Dimension(b []byte) (int, int) + 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, err error) + func QuoteEntity(b []byte) (quote byte, n int) + func ReplaceMultipleWhitespace(b []byte) []byte + func ToLower(src []byte) []byte + func TrimWhitespace(b []byte) []byte + type Error struct + Message string + Offset int + func NewError(msg string, r io.Reader, offset int) *Error + func NewErrorLexer(msg string, l *buffer.Lexer) *Error + func (e *Error) Error() string + func (e *Error) Position() (int, int, string)