diff --git a/viper.go b/viper.go index 92366d6..963861a 100644 --- a/viper.go +++ b/viper.go @@ -753,7 +753,7 @@ func defaultDecoderConfig(output interface{}) *mapstructure.DecoderConfig { Metadata: nil, Result: output, WeaklyTypedInput: true, - DecodeHook: mapstructure.ComposeDecodeHookFunc( + DecodeHook: mapstructure.ComposeDecodeHookFunc( mapstructure.StringToTimeDurationHookFunc(), mapstructure.StringToSliceHookFunc(","), ),