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

Method AddFunctions

common/env/env.go:180–183  ·  view source on GitHub ↗

AddFunctions adds one or more functions to the config.

(funcs ...*Function)

Source from the content-addressed store, hash-verified

178
179// AddFunctions adds one or more functions to the config.
180func (c *Config) AddFunctions(funcs ...*Function) *Config {
181 c.Functions = append(c.Functions, funcs...)
182 return c
183}
184
185// SetStdLib configures the LibrarySubset for the standard library.
186func (c *Config) SetStdLib(subset *LibrarySubset) *Config {

Callers 4

envProtoToConfigFunction · 0.95
AddFunctionDeclsMethod · 0.95
TestConfigFunction · 0.45
TestConfigValidateErrorsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestConfigFunction · 0.36
TestConfigValidateErrorsFunction · 0.36