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
I can see that mergo merges when the destination is non-zero and that there is also a forced overwrite option, but I have a use case where I want to report an error (and abort the merge), if an attempt is made to merge a field that already is non-zero in the destination object. I'd like to submit a PR to support this behaviour. Do you agree that this is useful?
The text was updated successfully, but these errors were encountered:
As #49 has been merged, we can implement this easily. I was thinking how to call it and I would go for CleanMerge (as in clean shot). It only would fail if Merge finds a non-zero attribute in destination and the source attribute isn't zero.
I can see that mergo merges when the destination is non-zero and that there is also a forced overwrite option, but I have a use case where I want to report an error (and abort the merge), if an attempt is made to merge a field that already is non-zero in the destination object. I'd like to submit a PR to support this behaviour. Do you agree that this is useful?
The text was updated successfully, but these errors were encountered: