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

Method Libraries

cel/env.go:609–615  ·  view source on GitHub ↗

Libraries returns a list of SingletonLibrary that have been configured in the environment.

()

Source from the content-addressed store, hash-verified

607
608// Libraries returns a list of SingletonLibrary that have been configured in the environment.
609func (e *Env) Libraries() []string {
610 libraries := make([]string, 0, len(e.libraries))
611 for libName := range e.libraries {
612 libraries = append(libraries, libName)
613 }
614 return libraries
615}
616
617// HasFunction returns whether a specific function has been configured in the environment
618func (e *Env) HasFunction(functionName string) bool {

Callers 1

TestLibrariesFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestLibrariesFunction · 0.76