mirror of
https://github.com/spf13/viper
synced 2024-11-14 00:57:01 +00:00
adding GetStringMapStringSlice method
This commit is contained in:
parent
2abb1bebfd
commit
a51b73284f
1 changed files with 6 additions and 0 deletions
6
viper.go
6
viper.go
|
@ -455,6 +455,12 @@ func (v *Viper) GetStringMapString(key string) map[string]string {
|
|||
return cast.ToStringMapString(v.Get(key))
|
||||
}
|
||||
|
||||
// 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 (v *Viper) GetStringMapStringSlice(key string) map[string]string {
|
||||
return cast.ToStringMapStringSlice(v.Get(key))
|
||||
}
|
||||
|
||||
// Returns the size of the value associated with the given key
|
||||
// in bytes.
|
||||
func GetSizeInBytes(key string) uint { return v.GetSizeInBytes(key) }
|
||||
|
|
Loading…
Reference in a new issue