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

Method Variables

cel/env.go:633–637  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

631
632// Variables returns a shallow copy of the variables associated with the environment.
633func (e *Env) Variables() []*decls.VariableDecl {
634 shallowCopy := make([]*decls.VariableDecl, len(e.variables))
635 copy(shallowCopy, e.variables)
636 return shallowCopy
637}
638
639// Macros returns a shallow copy of macros associated with the environment.
640func (e *Env) Macros() []Macro {

Callers 2

ToConfigMethod · 0.95
RenderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected