mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Added setters for key delimiter
This commit is contained in:
parent
9e56dacc08
commit
d80ace340d
1 changed files with 6 additions and 0 deletions
6
viper.go
6
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
|
||||
|
|
Loading…
Add table
Reference in a new issue