mapstructure icon indicating copy to clipboard operation
mapstructure copied to clipboard

Add configuration option: ErrorUnsetFields.

Open benma opened this issue 10 years ago • 3 comments

Allows the user to see if a a struct has not been populated fully.

In my project, I need a one to one mapping between the map and my struct, and need to catch if a struct field has been left in the default state because of a missing key in the original map.

benma avatar Apr 20 '15 13:04 benma

:+1:

bsideup avatar Feb 03 '16 06:02 bsideup

+1 for this feature

HavaH123 avatar Dec 01 '20 02:12 HavaH123

also +1 for this feature

tiwalter avatar Mar 14 '22 11:03 tiwalter