Documentation ¶
Index ¶
- func Discard(n *html.Node) bool
- func FastDate(n *html.Node) bool
- func FreeText(n *html.Node) bool
- func Query(root *html.Node, selector Rule) *html.Node
- func QueryAll(root *html.Node, selector Rule) []*html.Node
- func QueryAllTextNodes(root *html.Node, selector Rule) []*html.Node
- func SlowDate(n *html.Node) bool
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FastDate ¶
..//footer | .//small | //*[self::div or self::h2 or self::h3 or self::h4 or self::li or self::p or self::span or self::time or self::ul], then date selector.
func QueryAllTextNodes ¶
QueryAllTextNodes find all text nodes that exist inside elements that matched with the rule.
Types ¶
Click to show internal directories.
Click to hide internal directories.