This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 679
Slice or Map not decoded #249
Labels
Comments
Hm yes, this is intended and I think would be a breaking change to change the default. By decoding to a I'd be open to an enhancement that introduces a new option to "prefer maps" basically in this scenario. |
#314 looks like a perfect fix for this and much wanted :) |
Given that this project is being officially forked to https://github.com/go-viper/mapstructure (see #349) I'd suggest that this issue (and associated PR) be opened against that project now. |
This was referenced Nov 30, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If a field is a slice of structs they are not decoded, instead it stays a slice of that type.
Same goes for maps.
See example here.
The text was updated successfully, but these errors were encountered: