Documentation ¶
Index ¶
- func AttrValByRegex(nodes *[]*html.Node, namespace, key string, val *regexp.Regexp) func(n *html.Node) bool
- func MatchAttrs(nodes *[]*html.Node, first bool, attr ...html.Attribute) func(*html.Node) bool
- func MatchClassNames(nodes *[]*html.Node, first bool, name ...string) func(*html.Node) bool
- func MatchTag(nodes *[]*html.Node, first bool, tag ...atom.Atom) func(*html.Node) bool
- func TagFilter(tag atom.Atom, f func(*html.Node) bool) func(*html.Node) bool
- func TypeFilter(t html.NodeType, f func(*html.Node) bool) func(*html.Node) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrValByRegex ¶
func AttrValByRegex(nodes *[]*html.Node, namespace, key string, val *regexp.Regexp) func(n *html.Node) bool
Returns a function that collects all nodes who have an attribute that matches key and where its value matches the regex val.
func MatchAttrs ¶
Returns a function that adds every given node to nodes if it contains all attributes specified in attr. If first is true, search will stop after first match.
func MatchClassNames ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.