diff --git a/viper.go b/viper.go index 7173c6e..fb25529 100644 --- a/viper.go +++ b/viper.go @@ -1765,6 +1765,12 @@ func (v *Viper) SetConfigType(in string) { } } +// SetKeyDelim set the delimiter string used to separate key values +// returned by AllKeys(). This is useful if you need to allow for +// the '.' character in key names. +func SetKeyDelim(delim string) { v.keyDelim = delim } +func (v *Viper) SetKeyDelim(delim string) { v.keyDelim = delim } + func (v *Viper) getConfigType() string { if v.configType != "" { return v.configType