package grmi type ConditionItem struct { Field PredicateType func(Predicate) string OrderBy bool valueParser func(string) (interface{}, error) } func NewConditionItem(field Field, predicateType func(Predicate) string, orderBy bool) ConditionItem { return ConditionItem{field, predicateType, orderBy, nil} }