Documentation ¶
Index ¶
- func Comments(doc *html.Node) []*html.Node
- func FindNode(node *html.Node, matcher func(node *html.Node) bool) *html.Node
- func FindNodes(node *html.Node, matcher func(node *html.Node) (bool, bool)) (nodes []*html.Node)
- func GetElementWithClass(node *html.Node, tagname atom.Atom, class string) *html.Node
- func Submissions(doc *html.Node) []*html.Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNodes ¶
FindNodes will gather all nodes that the matcher function accepts. The matcher function's second return value indicates whether to search the children of the current node.
func GetElementWithClass ¶
GetElementWithClass returns the first element underneath and including `node` that has the given class value (as given in the HTML). The classes must be in the same order as those given.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.