Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1451,15 +1451,15 @@ func (v *Viper) AutomaticEnv() {
v.automaticEnvApplied = true
}

// SetEnvKeyReplacer sets the strings.Replacer on the viper object
// SetEnvKeyReplacer sets the StringReplacer 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 SetEnvKeyReplacer(r StringReplacer) { v.SetEnvKeyReplacer(r) }

// SetEnvKeyReplacer sets the strings.Replacer on the viper object
// SetEnvKeyReplacer sets the StringReplacer on the viper object
// Useful for mapping an environmental variable to a key that does
// not match it.
func (v *Viper) SetEnvKeyReplacer(r *strings.Replacer) {
func (v *Viper) SetEnvKeyReplacer(r StringReplacer) {
v.envKeyReplacer = r
}

Expand Down