(exprs ...Expression)
| 150 | } |
| 151 | |
| 152 | func Not(exprs ...Expression) Expression { |
| 153 | if len(exprs) == 0 { |
| 154 | return nil |
| 155 | } |
| 156 | if len(exprs) == 1 { |
| 157 | if andCondition, ok := exprs[0].(AndConditions); ok { |
| 158 | exprs = andCondition.Exprs |
| 159 | } |
| 160 | } |
| 161 | return NotConditions{Exprs: exprs} |
| 162 | } |
| 163 | |
| 164 | type NotConditions struct { |
| 165 | Exprs []Expression |