You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a struct has map, slice, or pointer fields which have an initial value of nil, Set() will set them to empty (zero) values, even if the field has no "default" tag. See this test case:
If a struct has map, slice, or pointer fields which have an initial value of nil, Set() will set them to empty (zero) values, even if the field has no "default" tag. See this test case:
Seems like, if the field has no "default" tag, and there is nothing to recurse into (because the value is nil), it should be left unchanged.
I think this was a side effect of the last change for recursing into nested values with no "default" tag.
The text was updated successfully, but these errors were encountered: