MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / Matcher

Interface Matcher

type.go:136–140  ·  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

134// HTML nodes against a compiled selector string. Cascadia's
135// Selector implements this interface.
136type Matcher interface {
137 Match(*html.Node) bool
138 MatchAll(*html.Node) []*html.Node
139 Filter([]*html.Node) []*html.Node
140}
141
142// Single compiles a selector string to a Matcher that returns at most one
143// match per call to Matcher.MatchAll.

Callers 20

winnowFunction · 0.65
ClosestMatcherMethod · 0.65
getParentsNodesFunction · 0.65
getSiblingNodesFunction · 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

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected