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

Function WithEnvPrefix

pkg/config/loader.go:39–43  ·  view source on GitHub ↗

WithEnvPrefix 设置环境变量前缀

(prefix string)

Source from the content-addressed store, hash-verified

37
38// WithEnvPrefix 设置环境变量前缀
39func WithEnvPrefix(prefix string) LoaderOption {
40 return func(l *Loader) {
41 l.envPrefix = prefix
42 }
43}
44
45// WithVariables 设置自定义变量
46func WithVariables(vars map[string]string) LoaderOption {

Callers 2

TestNewLoaderWithOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewLoaderWithOptionsFunction · 0.68