VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.
(vars ...*decls.VariableDecl)
| 155 | |
| 156 | // VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment. |
| 157 | func VariableDecls(vars ...*decls.VariableDecl) EnvOption { |
| 158 | return func(e *Env) (*Env, error) { |
| 159 | for _, v := range vars { |
| 160 | e.variables = append(e.variables, v) |
| 161 | } |
| 162 | return e, nil |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // Function defines a function and overloads with optional singleton or per-overload bindings. |
| 167 | // |
no outgoing calls