Matcher is an interface that defines the methods to match HTML nodes against a compiled selector string. Cascadia's Selector implements this interface.
| 134 | // HTML nodes against a compiled selector string. Cascadia's |
| 135 | // Selector implements this interface. |
| 136 | type 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. |
no outgoing calls
no test coverage detected