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

Method Macros

cel/env.go:640–644  ·  view source on GitHub ↗

Macros returns a shallow copy of macros associated with the environment.

()

Source from the content-addressed store, hash-verified

638
639// Macros returns a shallow copy of macros associated with the environment.
640func (e *Env) Macros() []Macro {
641 shallowCopy := make([]Macro, len(e.macros))
642 copy(shallowCopy, e.macros)
643 return shallowCopy
644}
645
646// HasValidator returns whether a specific ASTValidator has been configured in the environment.
647func (e *Env) HasValidator(name string) bool {

Callers 1

RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected