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
By default mergo doesn't allow merging a non empty value with an
empty value. For example if a field is a string "hello" it would not
override it, if the to be merged object contains the same field with "".
This works well until someone wants to override a true boolean with a
false boolean, in which case the merge doesn't happen.
By setting `mergo.WithOverwriteWithEmptyValue`, we can force mergo to
merge empty values into noni empty values.
darccio/mergo#249
got
expected
got
expected
As you can see overriding
true with false
fails, however overridingfalse with true
worksUpvote & Fund
The text was updated successfully, but these errors were encountered: