You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
340 B

  1. package grmi
  2. type ConditionItem struct {
  3. Field
  4. PredicateType func(Predicate) (string, error)
  5. OrderBy bool
  6. valueParser func(string) (interface{}, error)
  7. }
  8. func NewConditionItem(field Field, predicateType func(Predicate) (string, error), orderBy bool) ConditionItem {
  9. return ConditionItem{field, predicateType, orderBy, nil}
  10. }