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

Method SetEnvKeyReplacer

viper.go:1410–1412  ·  view source on GitHub ↗
(r *strings.Replacer)

Source from the content-addressed store, hash-verified

1408func SetEnvKeyReplacer(r *strings.Replacer) { v.SetEnvKeyReplacer(r) }
1409
1410func (v *Viper) SetEnvKeyReplacer(r *strings.Replacer) {
1411 v.envKeyReplacer = r
1412}
1413
1414// RegisterAlias creates an alias that provides another accessor for the same key.
1415// This enables one to change a name without breaking the application.

Callers 6

TestSetEnvKeyReplacerFunction · 0.80
TestEnvSubConfigFunction · 0.80
TestAllKeysWithEnvFunction · 0.80
TestIsSetFunction · 0.80
SetEnvKeyReplacerFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestSetEnvKeyReplacerFunction · 0.64
TestEnvSubConfigFunction · 0.64
TestAllKeysWithEnvFunction · 0.64
TestIsSetFunction · 0.64