Versions in this module Expand all Collapse all v1 v1.1.0 Sep 23, 2026 Changes in this version + const ContractVersion + type LimitError struct + Err error + Reason string + func (e *LimitError) Error() string + func (e *LimitError) Unwrap() error + type Limits struct + MaxDepth int + MaxSteps int + type Program struct + func Compile(transform Value, library Library) *Program + func CompileLimited(transform Value, library Library, limits Limits) (*Program, error) + func (p *Program) Run(source Value) Value + func (p *Program) RunContext(ctx context.Context, source Value) (Value, error) type Value + func EvaluateLimited(ctx context.Context, source, transform Value, library Library, limits Limits) (Value, error) v1.0.0 Sep 23, 2026 Changes in this version + const Version + func AsMap(value Value) (map[string]Value, bool) + func CompileLib(declarations []Value, distributions [][]Value, seed Library, test bool) map[string]Value + func Truthy(value Value) bool + type Library map[string]Value + type Runner struct + func NewRunner() *Runner + func (r *Runner) Evaluate(source, transform Value, library Library) Value + type Value = any + func DecodeJSON(data []byte) (Value, error) + func Evaluate(source, transform Value, library Library) Value