Documentation ¶
Overview ¶
Package html is a set of utilities for manipulating html Nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decorate ¶
func Decorate(root *html.Node, decor []Decoration)
Decorate will apply the given slice of Decorations to the HTML tree starting at root.
Types ¶
type Decoration ¶
type Decoration struct {
// 0-based character offsets for the span of the decoration.
Start, End int
// Template to use as the HTML decoration Node.
Node *html.Node
}
Decoration is a template for an HTML node that should span some textual offsets.
Click to show internal directories.
Click to hide internal directories.