This commit is contained in:
Dan 2020-09-07 17:16:11 +08:00 committed by GitHub
commit 02d0307909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}