standard

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptEngine

type ScriptEngine struct {
}

ScriptEngine standard implementation of the script engine interface

func (*ScriptEngine) Compile

func (engine *ScriptEngine) Compile(expression string, options *option.QueryOptions) (script.CompiledExpression, error)

Compile returns a compiled expression that can be evaluated multiple times

func (*ScriptEngine) Evaluate

func (engine *ScriptEngine) Evaluate(root, current interface{}, expression string, options *option.QueryOptions) (interface{}, error)

Evaluate return the result of the expression evaluation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL