BoolNot returns a predicate that represents the logical negation of the given predicate.
(x BoolP)
| 96 | |
| 97 | // BoolNot returns a predicate that represents the logical negation of the given predicate. |
| 98 | func BoolNot(x BoolP) BoolP { |
| 99 | expr := &boolP{} |
| 100 | expr.done = func(name string) { |
| 101 | expr.P = Not(x.Field(name)) |
| 102 | } |
| 103 | return expr |
| 104 | } |
| 105 | |
| 106 | // BytesP is the interface for predicates of type []byte (`type P[[]byte]`). |
| 107 | type BytesP interface { |
searching dependent graphs…