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

Method Variables

cel/env.go:736–738  ·  view source on GitHub ↗

Variables returns a shallow copy of the variables associated with the environment.

()

Source from the content-addressed store, hash-verified

734
735// Variables returns a shallow copy of the variables associated with the environment.
736func (e *Env) Variables() []*decls.VariableDecl {
737 return slices.Clone(e.variables)
738}
739
740// Macros returns a shallow copy of macros associated with the environment.
741func (e *Env) Macros() []Macro {

Callers 2

ToConfigMethod · 0.95
RenderMethod · 0.45

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected