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 believe this issue has probably the same root cause as #162#103#90. I added this issue because I'm experiencing this bug as well when using Transformers.
The transformer in short: it merges a slice of a struct by a matching field name so that in the resulting slice is still unique for that field name, that's why WithAppendSlices is not sufficient for me.
As you can see in the playground, the transformer is perfectly fine in all cases, including "a manual merge recursion", but fails once there is a map[string]<struct> where struct is passed as value. It exact that case the dst reflect.Value CanSet returns false.
The text was updated successfully, but these errors were encountered:
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
https://play.golang.org/p/gjrJVEVi5ju
I believe this issue has probably the same root cause as #162 #103 #90. I added this issue because I'm experiencing this bug as well when using Transformers.
The transformer in short: it merges a slice of a struct by a matching field name so that in the resulting slice is still unique for that field name, that's why
WithAppendSlices
is not sufficient for me.As you can see in the playground, the transformer is perfectly fine in all cases, including "a manual merge recursion", but fails once there is a
map[string]<struct>
where struct is passed as value. It exact that case thedst
reflect.ValueCanSet
returnsfalse
.The text was updated successfully, but these errors were encountered: