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

Function New

conf/config.go:64–68  ·  view source on GitHub ↗

New creates new config with environment.

(env any)

Source from the content-addressed store, hash-verified

62
63// New creates new config with environment.
64func New(env any) *Config {
65 c := CreateNew()
66 c.WithEnv(env)
67 return c
68}
69
70func (c *Config) WithEnv(env any) {
71 c.EnvObject = env

Calls 2

CreateNewFunction · 0.85
WithEnvMethod · 0.80