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

Function getStdEnv

cel/env.go:1130–1135  ·  view source on GitHub ↗

getStdEnv lazy initializes the CEL standard environment.

()

Source from the content-addressed store, hash-verified

1128
1129// getStdEnv lazy initializes the CEL standard environment.
1130func getStdEnv() (*Env, error) {
1131 stdEnvInit.Do(func() {
1132 stdEnv, stdEnvErr = NewCustomEnv(StdLib(), EagerlyValidateDeclarations(true))
1133 })
1134 return stdEnv, stdEnvErr
1135}
1136
1137// interopCELTypeProvider layers support for the types.Provider interface on top of a ref.TypeProvider.
1138type interopCELTypeProvider struct {

Callers 1

NewEnvFunction · 0.85

Calls 3

NewCustomEnvFunction · 0.85
StdLibFunction · 0.85

Tested by

no test coverage detected