mirror of
https://github.com/spf13/viper
synced 2025-05-11 06:37:27 +00:00
Merge 7180a27422
into 9c7144ec1e
This commit is contained in:
commit
02d0307909
1 changed files with 2 additions and 2 deletions
4
viper.go
4
viper.go
|
@ -1206,8 +1206,8 @@ func (v *Viper) AutomaticEnv() {
|
|||
// SetEnvKeyReplacer sets the strings.Replacer on the viper object
|
||||
// Useful for mapping an environmental variable to a key that does
|
||||
// not match it.
|
||||
func SetEnvKeyReplacer(r *strings.Replacer) { v.SetEnvKeyReplacer(r) }
|
||||
func (v *Viper) SetEnvKeyReplacer(r *strings.Replacer) {
|
||||
func SetEnvKeyReplacer(r StringReplacer) { v.SetEnvKeyReplacer(r) }
|
||||
func (v *Viper) SetEnvKeyReplacer(r StringReplacer) {
|
||||
v.envKeyReplacer = r
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue