expr

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expr

type Expr struct {
	// contains filtered or unexported fields
}

Expr language engine

https://github.com/expr-lang/expr

func New

func New(ctx context.Context) *Expr

func (*Expr) CompileExpression

func (engine *Expr) CompileExpression(source string) (result expression.ICompiledExpression, err error)

func (*Expr) EvaluateExpression

func (engine *Expr) EvaluateExpression(e expression.ICompiledExpression,
	data interface{},
) (result expression.IResult, err error)

func (*Expr) SetItemAwareLocator

func (engine *Expr) SetItemAwareLocator(name string, itemAwareLocator data.IItemAwareLocator)

Jump to

Keyboard shortcuts

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