expression

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	Evaluate(expression string, variables map[string]interface{}) (interface{}, error)
}

Evaluator defines the interface for evaluating expressions

func NewGovaluateEvaluator

func NewGovaluateEvaluator() Evaluator

NewGovaluateEvaluator creates a new GovaluateEvaluator

type GovaluateEvaluator

type GovaluateEvaluator struct {
}

GovaluateEvaluator implements Evaluator using the govaluate library

func (*GovaluateEvaluator) Evaluate

func (e *GovaluateEvaluator) Evaluate(expression string, variables map[string]interface{}) (interface{}, error)

Evaluate evaluates an expression with the given variables

Jump to

Keyboard shortcuts

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