BytesNot returns a predicate that represents the logical negation of the given predicate.
(x BytesP)
| 180 | |
| 181 | // BytesNot returns a predicate that represents the logical negation of the given predicate. |
| 182 | func BytesNot(x BytesP) BytesP { |
| 183 | expr := &bytesP{} |
| 184 | expr.done = func(name string) { |
| 185 | expr.P = Not(x.Field(name)) |
| 186 | } |
| 187 | return expr |
| 188 | } |
| 189 | |
| 190 | // TimeP is the interface for predicates of type time.Time (`type P[time.Time]`). |
| 191 | type TimeP interface { |