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

Function Env

conf/env.go:15–17  ·  view source on GitHub ↗

Env returns the Nature of the given environment. Deprecated: use EnvWithCache instead.

(env any)

Source from the content-addressed store, hash-verified

13//
14// Deprecated: use EnvWithCache instead.
15func Env(env any) Nature {
16 return EnvWithCache(new(Cache), env)
17}
18
19func EnvWithCache(c *Cache, env any) Nature {
20 if env == nil {

Callers

nothing calls this directly

Calls 1

EnvWithCacheFunction · 0.85

Tested by

no test coverage detected