mitchellh / mapstructure

Go library for decoding generic map values into native Go structures and vice versa.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
7.93k stars 677 forks source link

Fix untagged field decoding in case of decode to struct #292

Closed anton-ryabkov closed 10 months ago

anton-ryabkov commented 2 years ago

When I try to decode data from map[interface{}]interface{} into struct with options IgnoreUntaggedFields = true, some fields at struct without mapstructure tag are still filling up. There is happend when key in map and filend name at struct are same.

Current pull request fix this issue.

sagikazarmark commented 11 months ago

Pulled in at https://github.com/go-viper/mapstructure/pull/7