MCPcopy
hub / github.com/spf13/viper / SetEnvPrefix

Method SetEnvPrefix

viper.go:406–410  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

404func SetEnvPrefix(in string) { v.SetEnvPrefix(in) }
405
406func (v *Viper) SetEnvPrefix(in string) {
407 if in != "" {
408 v.envPrefix = in
409 }
410}
411
412func GetEnvPrefix() string { return v.GetEnvPrefix() }
413

Callers 4

TestEnvPrefixFunction · 0.80
TestAutoEnvWithPrefixFunction · 0.80
TestEnvSubConfigFunction · 0.80
SetEnvPrefixFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestEnvPrefixFunction · 0.64
TestAutoEnvWithPrefixFunction · 0.64
TestEnvSubConfigFunction · 0.64