Open andig opened 1 month ago
Using mapstructure for decoding into maps as target structure seems to be an odd edge case. There are various open issues, amongst them https://github.com/go-viper/mapstructure/issues/12 or https://github.com/mitchellh/mapstructure/issues/306 because MatchName is not applied.
MatchName
As workaround I'm using https://github.com/peterbourgon/mergemap/issues/9, but it would be nice if mapstructure could apply all features to maps, too.
Using mapstructure for decoding into maps as target structure seems to be an odd edge case. There are various open issues, amongst them https://github.com/go-viper/mapstructure/issues/12 or https://github.com/mitchellh/mapstructure/issues/306 because
MatchName
is not applied.As workaround I'm using https://github.com/peterbourgon/mergemap/issues/9, but it would be nice if mapstructure could apply all features to maps, too.