Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(inputExpr string, lookupFns ...VariableLookupFunction) (bool, error)
Evaluate evaluates an input expression. Expressions are groups of string values combined with equal or unequal comparators. The order of comparison operations can be designated using groups enclosed inside parenthesis. An optional VariableLookupFunction can be provided to provide variable lookups.
func NullLookup ¶
NullLookup returns an empty value for any requested variable and does not return an error. This is the default variable lookup function used by Evaluate.
Types ¶
type VariableLookupFunction ¶
A VariableLookupFunction designates how variables should be resolved when evaluating expressions.
Click to show internal directories.
Click to hide internal directories.