MCPcopy Create free account
hub / github.com/DoNewsCode/core / ProvideEnv

Function ProvideEnv

default_config.go:71–73  ·  view source on GitHub ↗

ProvideEnv is the default EnvProvider for package Core.

(conf contract.ConfigUnmarshaler)

Source from the content-addressed store, hash-verified

69
70// ProvideEnv is the default EnvProvider for package Core.
71func ProvideEnv(conf contract.ConfigUnmarshaler) contract.Env {
72 return config.NewEnvFromConf(conf)
73}
74
75// ProvideAppName is the default AppNameProvider for package Core.
76func ProvideAppName(conf contract.ConfigUnmarshaler) contract.AppName {

Callers

nothing calls this directly

Calls 1

NewEnvFromConfFunction · 0.92

Tested by

no test coverage detected