diff --git a/viper.go b/viper.go index 46b1a85..982b516 100644 --- a/viper.go +++ b/viper.go @@ -871,6 +871,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) } }