Versions in this module Expand all Collapse all v1 v1.2.1 Oct 15, 2021 v1.2.0 Sep 17, 2021 Changes in this version + func Filter(nodes []*html.Node, m Matcher) (result []*html.Node) + func Query(n *html.Node, m Matcher) *html.Node + func QueryAll(n *html.Node, m Matcher) []*html.Node + type Matcher interface + Match func(n *html.Node) bool + type Sel interface + PseudoElement func() string + Specificity func() Specificity + String func() string + func Parse(sel string) (Sel, error) + func ParseWithPseudoElement(sel string) (Sel, error) + type Selector func(*html.Node) bool + func Compile(sel string) (Selector, error) + func MustCompile(sel string) Selector + func (s Selector) Filter(nodes []*html.Node) (result []*html.Node) + func (s Selector) Match(n *html.Node) bool + func (s Selector) MatchAll(n *html.Node) []*html.Node + func (s Selector) MatchFirst(n *html.Node) *html.Node + type SelectorGroup []Sel + func ParseGroup(sel string) (SelectorGroup, error) + func ParseGroupWithPseudoElements(sel string) (SelectorGroup, error) + func (c SelectorGroup) String() string + func (s SelectorGroup) Match(n *html.Node) bool + type Specificity [3]int + func (s Specificity) Add(other Specificity) Specificity + func (s Specificity) Less(other Specificity) bool