Versions in this module Expand all Collapse all v1 v1.0.4 Sep 9, 2024 Changes in this version type Filter + func (f *Filter) ExecWithSlice(data any) (any, error) v1.0.3 Sep 6, 2024 v1.0.2 Sep 6, 2024 Changes in this version type Filter + func NewFilter(tag string, rule Rule) (*Filter, error) v1.0.1 Sep 6, 2024 Changes in this version type Filter + Rule Rule + func GenFilter(tag string, rule Rule) (*Filter, error) + func (f *Filter) Exec(data any) (bool, error) + func (f *Filter) Tag() string + type FilterFunc func(option any, data any) bool v1.0.0 Sep 6, 2024 Changes in this version + const AND + const EQ + const GE + const GT + const IN + const LE + const LT + const NE + const NIN + const OR + func AnyEqual[T comparable](arr []T, item T) (bool, error) + func AnyFind[T comparable](arr []T, item T) bool + func AnyGreaterThan[T comparable](arr []T, item T) (bool, error) + func AnyLessThan[T comparable](arr []T, item T) (bool, error) + func GetDataField(data any, ctype string) (string, any) + func GetFnMaps(item any, fs map[string]RulePool) map[string]interface + type Filter func(option any, data any) bool + type FilterRule struct + Rule Rule + func GenRule(tag string, rule Rule) (*FilterRule, error) + func (f *FilterRule) Exec(data any) (bool, error) + func (f *FilterRule) Tag() string + type GValuate struct + Name string + Valuate *govaluate.EvaluableExpression + func NewGValuate(name string) *GValuate + func (gv *GValuate) Eval(exp string) error + func (gv *GValuate) Exec(parameters map[string]interface{}) (bool, error) + type Rule struct + RChild *Rule + RRules []RulePool + RSign int + RType int + type RulePool struct + CName string + CParams []any + CSymbol int + CType string + type Stack struct + func NewStack() *Stack + func (s *Stack) IsEmpty() bool + func (s *Stack) Pop() (interface{}, error) + func (s *Stack) Push(v interface{}) + func (s *Stack) ToExpress() string