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

Method NotMatcher

filter.go:26–28  ·  view source on GitHub ↗

NotMatcher removes elements from the Selection that match the given matcher. It returns a new Selection object with the matching elements removed.

(m Matcher)

Source from the content-addressed store, hash-verified

24// NotMatcher removes elements from the Selection that match the given matcher.
25// It returns a new Selection object with the matching elements removed.
26func (s *Selection) NotMatcher(m Matcher) *Selection {
27 return pushStack(s, winnow(s, m, false))
28}
29
30// FilterFunction reduces the set of matched elements to those that pass the function's test.
31// It returns a new Selection object for this subset of elements.

Callers 1

NotMethod · 0.95

Calls 2

pushStackFunction · 0.85
winnowFunction · 0.85

Tested by

no test coverage detected