Skip to content
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

mergo.WithOverride on maps replaces old keys only for certain types #202

Closed
faximan opened this issue Dec 2, 2021 · 3 comments · Fixed by #226
Closed

mergo.WithOverride on maps replaces old keys only for certain types #202

faximan opened this issue Dec 2, 2021 · 3 comments · Fixed by #226

Comments

@faximan
Copy link

faximan commented Dec 2, 2021

See https://go.dev/play/p/wUmW7O4Fr5s.

If "x" is overridden (which is what I would expect), I don't see why "y" isn't.

@xscode-auto-reply
Copy link

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/imdario/mergo

@mark8s
Copy link

mark8s commented Aug 18, 2022

I also encountered this problem, did you solve it?

@faximan
Copy link
Author

faximan commented Aug 18, 2022

Nope, I worked around it with a manual merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants