mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
typo: slice type needed
This commit is contained in:
parent
30232be240
commit
0def2189a8
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -456,7 +456,7 @@ func (v *Viper) GetStringMapString(key string) map[string]string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the value associated with the key as a map to a slice of strings
|
// Returns the value associated with the key as a map to a slice of strings
|
||||||
func GetStringMapStringSlice(key string) map[string]string { return v.GetStringMapStringSlice(key) }
|
func GetStringMapStringSlice(key string) map[string][]string { return v.GetStringMapStringSlice(key) }
|
||||||
func (v *Viper) GetStringMapStringSlice(key string) map[string]string {
|
func (v *Viper) GetStringMapStringSlice(key string) map[string]string {
|
||||||
return cast.ToStringMapStringSlice(v.Get(key))
|
return cast.ToStringMapStringSlice(v.Get(key))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue