Versions in this module Expand all Collapse all v0 v0.1.0 Aug 23, 2026 Changes in this version + var ErrUndefined = errors.New("no results found") + func Eval(expression string, data interface{}) (interface{}, error) + func EvalBytes(expression string, data []byte) ([]byte, error) + func EvalBytesWithOptions(expression string, data []byte, options EvalOptions) ([]byte, error) + func EvalNoInput(expression string) (any, error) + func EvalNoInputWithOptions(expression string, options EvalOptions) (any, error) + func EvalWithOptions(expression string, data any, options EvalOptions) (any, error) + func RegisterExts(exts map[string]Extension) error + func RegisterVars(vars map[string]interface{}) error + type ArgCountError struct + Expected int + Func string + Received int + func (e ArgCountError) Error() string + type ArgTypeError struct + Func string + Which int + func (e ArgTypeError) Error() string + type Engine struct + func NewEngine() *Engine + func (e *Engine) Compile(expression string) (*Expr, error) + func (e *Engine) Eval(ctx context.Context, expression string, input any) (any, error) + func (e *Engine) Evaluate(ctx context.Context, expr *Expr, input any) (any, error) + func (e *Engine) RegisterExts(exts map[string]Extension) error + func (e *Engine) RegisterVars(vars map[string]interface{}) error + type ErrType uint + const ErrClone + const ErrDuplicateKey + const ErrIllegalDelete + const ErrIllegalKey + const ErrIllegalUpdate + const ErrMaxRangeItems + const ErrNonCallable + const ErrNonCallableApply + const ErrNonCallablePartial + const ErrNonComparableLHS + const ErrNonComparableRHS + const ErrNonIntegerLHS + const ErrNonIntegerRHS + const ErrNonNumberLHS + const ErrNonNumberRHS + const ErrNonSortable + const ErrNumberInf + const ErrNumberNaN + const ErrSortMismatch + const ErrTypeMismatch + type Error struct + Code string + Message string + Position int + Token string + Value any + func (e Error) As(target any) bool + func (e Error) Error() string + func (e Error) JSONataCode() string + func (e Error) Unwrap() error + type EvalContext struct + Context context.Context + Input any + func NewEvalContext(ctx context.Context, input any) EvalContext + type EvalError struct + Token string + Type ErrType + Value string + func (e EvalError) Error() string + type EvalOptions struct + Bindings map[string]any + Context context.Context + MaxCallDepth int + MaxOperations int64 + MaxSequenceLength int + Timeout time.Duration + type Expr struct + func Compile(expression string) (*Expr, error) + func MustCompile(expression string) *Expr + func (e *Expr) Eval(data interface{}) (interface{}, error) + func (e *Expr) EvalBindings(data interface{}, bindings map[string]any) (interface{}, error) + func (e *Expr) EvalBytes(data []byte) ([]byte, error) + func (e *Expr) EvalBytesWithOptions(data []byte, options EvalOptions) ([]byte, error) + func (e *Expr) EvalContext(ctx context.Context, input any) (any, error) + func (e *Expr) EvalNoInput() (any, error) + func (e *Expr) EvalNoInputBindings(bindings map[string]any) (any, error) + func (e *Expr) EvalNoInputWithOptions(options EvalOptions) (any, error) + func (e *Expr) EvalWithOptions(data any, options EvalOptions) (any, error) + func (e *Expr) RegisterExts(exts map[string]Extension) error + func (e *Expr) RegisterVars(vars map[string]interface{}) error + func (e *Expr) String() string + type Extension struct + EvalContextHandler func([]reflect.Value) bool + Func interface{} + UndefinedHandler func([]reflect.Value) bool + type JSONataError = Error