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

Function Functions

cel/options.go:483–490  ·  view source on GitHub ↗

Functions adds function overloads that extend or override the set of CEL built-ins. Deprecated: use Function() instead to declare the function, its overload signatures, and the overload implementations.

(funcs ...*functions.Overload)

Source from the content-addressed store, hash-verified

481// Deprecated: use Function() instead to declare the function, its overload signatures,
482// and the overload implementations.
483func Functions(funcs ...*functions.Overload) ProgramOption {
484 return func(p *prog) (*prog, error) {
485 if err := p.dispatcher.Add(funcs...); err != nil {
486 return nil, err
487 }
488 return p, nil
489 }
490}
491
492// Globals sets the global variable values for a given program. These values may be shadowed by
493// variables with the same name provided to the Eval() call. If Globals is used in a Library with

Callers 1

Calls 1

AddMethod · 0.65

Tested by 1