Versions in this module Expand all Collapse all v1 v1.16.11 Aug 20, 2024 Changes in this version + func Compile(input string, ops ...Option) (*vm.Program, error) + func Eval(input string, env any) (any, error) + func Run(program *vm.Program, env any) (any, error) + type Option func(c *conf.Config) + func AllowUndefinedVariables() Option + func AsAny() Option + func AsBool() Option + func AsFloat64() Option + func AsInt() Option + func AsInt64() Option + func AsKind(kind reflect.Kind) Option + func ConstExpr(fn string) Option + func DisableAllBuiltins() Option + func DisableBuiltin(name string) Option + func EnableBuiltin(name string) Option + func Env(env any) Option + func Function(name string, fn func(params ...any) (any, error), types ...any) Option + func Operator(operator string, fn ...string) Option + func Optimize(b bool) Option + func Patch(visitor ast.Visitor) Option + func Timezone(name string) Option + func WarnOnAny() Option + func WithContext(name string) Option