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

Function StdLib

cel/library.go:130–136  ·  view source on GitHub ↗

StdLib returns an EnvOption for the standard library of CEL functions and macros.

(opts ...StdLibOption)

Source from the content-addressed store, hash-verified

128
129// StdLib returns an EnvOption for the standard library of CEL functions and macros.
130func StdLib(opts ...StdLibOption) EnvOption {
131 lib := &stdLibrary{}
132 for _, o := range opts {
133 lib = o(lib)
134 }
135 return Lib(lib)
136}
137
138// stdLibrary implements the Library interface and provides functional options for the core CEL
139// features documented in the specification.

Callers 13

initFunction · 0.92
getStdEnvFunction · 0.85
configToEnvOptionsFunction · 0.85
TestPromptTemplateFunction · 0.85
TestEnvCheckExtendRaceFunction · 0.85
TestCustomEnvErrorFunction · 0.85
TestSubsetStdLibFunction · 0.85
TestSubsetStdLibErrorFunction · 0.85
TestSubsetStdLibMergeFunction · 0.85

Calls 1

LibFunction · 0.85

Tested by 11

initFunction · 0.74
TestPromptTemplateFunction · 0.68
TestEnvCheckExtendRaceFunction · 0.68
TestCustomEnvErrorFunction · 0.68
TestSubsetStdLibFunction · 0.68
TestSubsetStdLibErrorFunction · 0.68
TestSubsetStdLibMergeFunction · 0.68