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

Method Not

filter.go:20–22  ·  view source on GitHub ↗

Not removes elements from the Selection that match the selector string. It returns a new Selection object with the matching elements removed.

(selector string)

Source from the content-addressed store, hash-verified

18// Not removes elements from the Selection that match the selector string.
19// It returns a new Selection object with the matching elements removed.
20func (s *Selection) Not(selector string) *Selection {
21 return s.NotMatcher(compileMatcher(selector))
22}
23
24// NotMatcher removes elements from the Selection that match the given matcher.
25// It returns a new Selection object with the matching elements removed.

Callers 5

BenchmarkNotFunction · 0.80
TestNotFunction · 0.80
TestNotInvalidFunction · 0.80
TestNotRollbackFunction · 0.80
TestNotNoneFunction · 0.80

Calls 2

NotMatcherMethod · 0.95
compileMatcherFunction · 0.85

Tested by 5

BenchmarkNotFunction · 0.64
TestNotFunction · 0.64
TestNotInvalidFunction · 0.64
TestNotRollbackFunction · 0.64
TestNotNoneFunction · 0.64