Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eval ¶
func Eval[T any](ctx context.Context, exp string, vars map[string]interface{}) (retval T, reterr error)
Eval evaluates an expression given a set of variables and returns a generic type.
func EvalAny ¶ added in v0.1.175
func EvalAny(ctx context.Context, exp string, vars map[string]interface{}) (retval interface{}, reterr error)
EvalAny evaluates an expression given a set of variables and returns a 'boxed' interface type.
func GetVariables ¶ added in v0.1.175
GetVariables returns a list of variables mentioned in an expression
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.