AllowUndefinedVariables allows to use undefined variables inside expressions. This can be used with expr.Env option to partially define a few variables.
()
| 35 | // AllowUndefinedVariables allows to use undefined variables inside expressions. |
| 36 | // This can be used with expr.Env option to partially define a few variables. |
| 37 | func AllowUndefinedVariables() Option { |
| 38 | return func(c *conf.Config) { |
| 39 | c.Strict = false |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // Operator allows to replace a binary operator with a function. |
| 44 | func Operator(operator string, fn ...string) Option { |
no outgoing calls
searching dependent graphs…