Versions in this module Expand all Collapse all v0 v0.0.2 Feb 4, 2026 Changes in this version + const DefaultCostLimit + const DefaultMaxExpressionLength + var ErrEvaluation = errors.New("CEL expression evaluation failed") + var ErrExpressionCheck = errors.New("CEL expression check failed") + var ErrInvalidResult = errors.New("CEL expression returned invalid result type") + type CheckError struct + func (ce *CheckError) Error() string + func (ce *CheckError) Unwrap() error + type CompiledExpression struct + func (ce *CompiledExpression) Evaluate(ctx map[string]any) (any, error) + func (ce *CompiledExpression) EvaluateBool(ctx map[string]any) (bool, error) + func (ce *CompiledExpression) Source() string + type Engine struct + func NewEngine(options ...cel.EnvOption) *Engine + func (e *Engine) Check(expr string) error + func (e *Engine) Compile(expr string) (*CompiledExpression, error) + func (e *Engine) WithCostLimit(limit uint64) *Engine + func (e *Engine) WithMaxExpressionLength(maxLen int) *Engine + type ErrDetails struct + Errors []ErrInstance + Source string + func (ed *ErrDetails) AsJSON() string + type ErrInstance struct + Col int + Line int + Msg string + type ErrKind string + const ErrKindCheck + const ErrKindParse + type ParseError struct + func (pe *ParseError) Error() string + func (pe *ParseError) Unwrap() error