MCPcopy
hub / github.com/expr-lang/expr / WithEnv

Method WithEnv

conf/config.go:70–74  ·  view source on GitHub ↗
(env any)

Source from the content-addressed store, hash-verified

68}
69
70func (c *Config) WithEnv(env any) {
71 c.EnvObject = env
72 c.Env = EnvWithCache(&c.NtCache, env)
73 c.Strict = c.Env.Strict
74}
75
76func (c *Config) ConstExpr(name string) {
77 if c.EnvObject == nil {

Callers 2

EnvFunction · 0.80
NewFunction · 0.80

Calls 1

EnvWithCacheFunction · 0.85

Tested by

no test coverage detected