Not wraps the given predicate with the not predicate. Not(Or(EQ("name", "foo"), EQ("name", "bar")))
(pred *Predicate)
| 798 | // |
| 799 | // Not(Or(EQ("name", "foo"), EQ("name", "bar"))) |
| 800 | func Not(pred *Predicate) *Predicate { |
| 801 | return P().Not().Append(func(b *Builder) { |
| 802 | b.Wrap(func(b *Builder) { |
| 803 | b.Join(pred) |
| 804 | }) |
| 805 | }) |
| 806 | } |
| 807 | |
| 808 | // Not appends NOT to the predicate. |
| 809 | func (p *Predicate) Not() *Predicate { |