FieldLT returns a raw predicate to check if the value of the field is less than the given value.
(name string, v any)
| 87 | |
| 88 | // FieldLT returns a raw predicate to check if the value of the field is less than the given value. |
| 89 | func FieldLT(name string, v any) func(*Selector) { |
| 90 | return func(s *Selector) { |
| 91 | s.Where(LT(s.C(name), v)) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // FieldsLT returns a raw predicate to check if field1 is lower than field2. |
| 96 | func FieldsLT(field1, field2 string) func(*Selector) { |
searching dependent graphs…