MCPcopy Create free account
hub / github.com/astercloud/aster / WithEnvExpansion

Function WithEnvExpansion

pkg/config/loader.go:32–36  ·  view source on GitHub ↗

WithEnvExpansion 启用环境变量展开

(enabled bool)

Source from the content-addressed store, hash-verified

30
31// WithEnvExpansion 启用环境变量展开
32func WithEnvExpansion(enabled bool) LoaderOption {
33 return func(l *Loader) {
34 l.expandEnv = enabled
35 }
36}
37
38// WithEnvPrefix 设置环境变量前缀
39func WithEnvPrefix(prefix string) LoaderOption {

Callers 2

TestNewLoaderWithOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewLoaderWithOptionsFunction · 0.68