package
0.1.2
Repository: https://github.com/model-collapse/vugu.git
Documentation: pkg.go.dev

# Packages

Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as "p" and "id".
Package charset provides common text encodings for HTML documents.

# Functions

EscapeString escapes special characters like "<" to become "&lt;".
NewTokenizer returns a new HTML Tokenizer for the given Reader.
NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for tokenizing an existing element's InnerHTML fragment.
UnescapeString unescapes entities like "&lt;" to become "<".

# Constants

A CommentToken looks like <!--x-->.
A DoctypeToken looks like <!DOCTYPE x>.
An EndTagToken looks like </a>.
ErrorToken means that an error occurred during tokenization.
A SelfClosingTagToken tag looks like <br/>.
A StartTagToken looks like <a>.
TextToken means a text node.

# Variables

ErrBufferExceeded means that the buffering limit was exceeded.

# Structs

An Attribute is an attribute namespace-key-value triple.
A Token consists of a TokenType and some Data (tag name for start and end tags, content for text, comments and doctypes).
A Tokenizer returns a stream of HTML Tokens.

# Type aliases

A TokenType is the type of a Token.