darccio / mergo

Mergo: merging Go structs and maps since 2013

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The `struct` in map value is overwritten completely

ben181231 opened this issue · comments

As mentioned in the title, the struct in map value is overwritten completely.
I don't whether it is expected behaviour from the implementor's perspective.
But the behaviour surprises me.

See. https://go.dev/play/p/99fVHhz2_L5

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

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

@ben181231 Sorry, that is actually the expected behaviour.