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

Function StdLib

cel/library.go:141–147  ·  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

139
140// StdLib returns an EnvOption for the standard library of CEL functions and macros.
141func StdLib(opts ...StdLibOption) EnvOption {
142 lib := &stdLibrary{}
143 for _, o := range opts {
144 lib = o(lib)
145 }
146 return Lib(lib)
147}
148
149// stdLibrary implements the Library interface and provides functional options for the core CEL
150// features documented in the specification.

Callers 15

initFunction · 0.92
getStdEnvFunction · 0.85
configToEnvOptionsFunction · 0.85
TestPromptTemplateFunction · 0.85
TestEnvCheckExtendRaceFunction · 0.85
TestEnvConcurrentExtendFunction · 0.85
TestCustomEnvErrorFunction · 0.85

Calls 1

LibFunction · 0.85

Tested by 14

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