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

Method Variables

cel/env.go:660–664  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

658
659// Variables returns a shallow copy of the variables associated with the environment.
660func (e *Env) Variables() []*decls.VariableDecl {
661 shallowCopy := make([]*decls.VariableDecl, len(e.variables))
662 copy(shallowCopy, e.variables)
663 return shallowCopy
664}
665
666// Macros returns a shallow copy of macros associated with the environment.
667func (e *Env) Macros() []Macro {

Callers 2

ToConfigMethod · 0.95
RenderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected