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

Function getStdEnv

cel/env.go:1040–1045  ·  view source on GitHub ↗

getStdEnv lazy initializes the CEL standard environment.

()

Source from the content-addressed store, hash-verified

1038
1039// getStdEnv lazy initializes the CEL standard environment.
1040func getStdEnv() (*Env, error) {
1041 stdEnvInit.Do(func() {
1042 stdEnv, stdEnvErr = NewCustomEnv(StdLib(), EagerlyValidateDeclarations(true))
1043 })
1044 return stdEnv, stdEnvErr
1045}
1046
1047// interopCELTypeProvider layers support for the types.Provider interface on top of a ref.TypeProvider.
1048type interopCELTypeProvider struct {

Callers 1

NewEnvFunction · 0.85

Calls 3

NewCustomEnvFunction · 0.85
StdLibFunction · 0.85

Tested by

no test coverage detected