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

Method AutomaticEnv

viper.go:1401–1403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1399func AutomaticEnv() { v.AutomaticEnv() }
1400
1401func (v *Viper) AutomaticEnv() {
1402 v.automaticEnvApplied = true
1403}
1404
1405// SetEnvKeyReplacer sets the strings.Replacer on the viper object
1406// Useful for mapping an environmental variable to a key that does

Callers 9

TestEnvFunction · 0.80
TestEnvPrefixFunction · 0.80
TestAutoEnvFunction · 0.80
TestAutoEnvWithPrefixFunction · 0.80
TestSetEnvKeyReplacerFunction · 0.80
TestEnvKeyReplacerFunction · 0.80
TestEnvSubConfigFunction · 0.80
AutomaticEnvFunction · 0.80

Calls

no outgoing calls

Tested by 8

TestEnvFunction · 0.64
TestEnvPrefixFunction · 0.64
TestAutoEnvFunction · 0.64
TestAutoEnvWithPrefixFunction · 0.64
TestSetEnvKeyReplacerFunction · 0.64
TestEnvKeyReplacerFunction · 0.64
TestEnvSubConfigFunction · 0.64