MCPcopy
hub / github.com/PuerkitoBio/goquery / Matcher

Interface Matcher

type.go:118–122  ·  view source on GitHub ↗

Matcher is an interface that defines the methods to match HTML nodes against a compiled selector string. Cascadia's Selector implements this interface.

Source from the content-addressed store, hash-verified

116// HTML nodes against a compiled selector string. Cascadia's
117// Selector implements this interface.
118type Matcher interface {
119 Match(*html.Node) bool
120 MatchAll(*html.Node) []*html.Node
121 Filter([]*html.Node) []*html.Node
122}
123
124// Single compiles a selector string to a Matcher that stops after the first
125// match is found.

Callers 19

winnowFunction · 0.65
IsMatcherMethod · 0.65
ClosestMatcherMethod · 0.65
AfterMatcherMethod · 0.65
AppendMatcherMethod · 0.65
BeforeMatcherMethod · 0.65
PrependMatcherMethod · 0.65
ReplaceWithMatcherMethod · 0.65
WrapMatcherMethod · 0.65
WrapAllMatcherMethod · 0.65
WrapInnerMatcherMethod · 0.65
winnowFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…