Versions in this module Expand all Collapse all v0 v0.1.1 Aug 21, 2022 Changes in this version + const FieldOpSep + const FieldParamSep + const FieldSep + const OPParamsSep + func All(flags []bool) bool + func Any(flags []bool) bool + func Contains(arr []string, t string) bool + type EndGroupExpr struct + func (e *EndGroupExpr) Match(data any) bool + type Expr struct + func (e *Expr) Strings() string + type Filter struct + Key string + Value string + func ParseFilterString(s string) (*Filter, error) + func (f *Filter) String() string + type IExpr interface + Match func(v any) bool + Strings func() string + func Parse(expr string) (IExpr, error) + type Key struct + type Logic uint8 + var AND Logic = 0 + var OR Logic = 1 + func (l Logic) Strings() string + type LogicExpr struct + func (e *LogicExpr) Match(data any) bool + func (le *LogicExpr) Strings() string + type OP interface + func NewOPEmpty(s string) (OP, error) + func NewOPEnds(s string) (OP, error) + func NewOPEqual(s string) (OP, error) + func NewOPExists(s string) (OP, error) + func NewOPGT(s string) (OP, error) + func NewOPGTE(s string) (OP, error) + func NewOPIEnds(s string) (OP, error) + func NewOPILike(s string) (OP, error) + func NewOPIStarts(s string) (OP, error) + func NewOPLT(s string) (OP, error) + func NewOPLTE(s string) (OP, error) + func NewOPLike(s string) (OP, error) + func NewOPStarts(s string) (OP, error) + func NewOPTimeRangeA(s string) (OP, error) + func NewOPTimeRangeAMS(s string) (OP, error) + func NewOPTimeRangeR(s string) (OP, error) + func NewOPTimeRangeRMS(s string) (OP, error) + type OPEmpty struct + func (op *OPEmpty) Name() string + type OPEnds struct + func (op *OPEnds) Name() string + type OPEqual struct + func (op *OPEqual) Name() string + type OPExists struct + func (op *OPExists) Name() string + type OPFunc func(*Filter, interface{}) bool + type OPGT struct + func (op *OPGT) Name() string + type OPLT struct + func (op *OPLT) Name() string + type OPLike struct + func (op *OPLike) Name() string + type OPNewFunc func(string) (OP, error) + type OPStarts struct + func (op *OPStarts) Name() string + type OPTimeRange struct + func (op *OPTimeRange) Name() string + type SimpleExpr struct + func (se *SimpleExpr) Match(data any) bool + func (se *SimpleExpr) Strings() string + type Stack struct + func NewStack() *Stack[T] + func (s *Stack[T]) Clear() + func (s *Stack[T]) IsEmpty() bool + func (s *Stack[T]) Pop() (v T) + func (s *Stack[T]) Push(v T) + func (s *Stack[T]) Size() int + func (s *Stack[T]) Top() (v T) + type StartGroupExpr struct + func (e *StartGroupExpr) Match(data any) bool + func (sge *StartGroupExpr) Strings() string + type Token struct + func (t Token) String() string + type TokenError struct + func (te TokenError) Error() string + type Tokenizer struct + func (t *Tokenizer) Parse() chan Token + type Value struct + S string + V any