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

Method AddIncludedMacros

common/env/env.go:667–670  ·  view source on GitHub ↗

AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.

(macros ...string)

Source from the content-addressed store, hash-verified

665//
666// Note, this option will override any excluded macros.
667func (lib *LibrarySubset) AddIncludedMacros(macros ...string) *LibrarySubset {
668 lib.IncludeMacros = append(lib.IncludeMacros, macros...)
669 return lib
670}
671
672// AddExcludedMacros deny-lists one or more macros by function name.
673func (lib *LibrarySubset) AddExcludedMacros(macros ...string) *LibrarySubset {

Callers 6

envToStdLibFunction · 0.95
TestSubsetStdLibErrorFunction · 0.80
TestConfigFunction · 0.80
TestConfigValidateErrorsFunction · 0.80
TestSubsetMacroFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestSubsetStdLibErrorFunction · 0.64
TestConfigFunction · 0.64
TestConfigValidateErrorsFunction · 0.64
TestSubsetMacroFunction · 0.64