mirror of
https://github.com/spf13/viper
synced 2025-05-07 20:57:18 +00:00
Merge 70f27e465a
into 5182412574
This commit is contained in:
commit
87daf9586a
1 changed files with 4 additions and 0 deletions
4
viper.go
4
viper.go
|
@ -928,6 +928,10 @@ func (v *Viper) Get(key string) interface{} {
|
|||
return cast.ToStringSlice(val)
|
||||
case []int:
|
||||
return cast.ToIntSlice(val)
|
||||
case map[string]string:
|
||||
return cast.ToStringMapString(val)
|
||||
case map[string]interface{}:
|
||||
return cast.ToStringMap(val)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue