MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ClearMacros

Function ClearMacros

cel/options.go:141–146  ·  view source on GitHub ↗

ClearMacros options clears all parser macros. Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as comprehensions such as `all` and `exists` are enabled only via macros.

()

Source from the content-addressed store, hash-verified

139// Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as
140// comprehensions such as `all` and `exists` are enabled only via macros.
141func ClearMacros() EnvOption {
142 return func(e *Env) (*Env, error) {
143 e.macros = NoMacros
144 return e, nil
145 }
146}
147
148// CustomTypeAdapter swaps the default types.Adapter implementation with a custom one.
149//

Callers 2

initFunction · 0.92
TestMacroSubsetFunction · 0.85

Calls

no outgoing calls

Tested by 2

initFunction · 0.74
TestMacroSubsetFunction · 0.68