MCPcopy
hub / github.com/expr-lang/expr / AllowUndefinedVariables

Function AllowUndefinedVariables

expr.go:37–41  ·  view source on GitHub ↗

AllowUndefinedVariables allows to use undefined variables inside expressions. This can be used with expr.Env option to partially define a few variables.

()

Source from the content-addressed store, hash-verified

35// AllowUndefinedVariables allows to use undefined variables inside expressions.
36// This can be used with expr.Env option to partially define a few variables.
37func 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.
44func Operator(operator string, fn ...string) Option {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…