-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge slice with override no effect #64
Comments
I think the slice is appended. |
@wen-bing, I checked your code and I confirm that the slice is being appended as @ravernkoh pointed. I think can be a bug but I need to check all the issues to see if it was reported before. |
Ok, after reviewing other issues, Mergo works as intended. Merge will append to slices as it adds missing keys in maps. But you are right. WithOverride should work different, as it shouldn't append to destination slice. |
It has been solved thanks to PR #70. |
And it has been released as v0.3.3. |
Awesome, Thanks! |
I expect s2's Books are overrided by s1's Books, however the test failed.
The text was updated successfully, but these errors were encountered: