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

Method NotFunction

filter.go:38–40  ·  view source on GitHub ↗

NotFunction removes elements from the Selection that pass the function's test. It returns a new Selection object with the matching elements removed.

(f func(int, *Selection) bool)

Source from the content-addressed store, hash-verified

36// NotFunction removes elements from the Selection that pass the function's test.
37// It returns a new Selection object with the matching elements removed.
38func (s *Selection) NotFunction(f func(int, *Selection) bool) *Selection {
39 return pushStack(s, winnowFunction(s, f, false))
40}
41
42// FilterNodes reduces the set of matched elements to those that match the specified nodes.
43// It returns a new Selection object for this subset of elements.

Callers 3

BenchmarkNotFunctionFunction · 0.80
TestNotFunctionFunction · 0.80
TestNotFunctionRollbackFunction · 0.80

Calls 2

pushStackFunction · 0.85
winnowFunctionFunction · 0.85

Tested by 3

BenchmarkNotFunctionFunction · 0.64
TestNotFunctionFunction · 0.64
TestNotFunctionRollbackFunction · 0.64