-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slice or Map not decoded #249
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. |
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: