conjungo icon indicating copy to clipboard operation
conjungo copied to clipboard

Yields different results if a structs field is a pointer vs. value

Open dionysius opened this issue 5 years ago • 0 comments

https://play.golang.org/p/mgcKU7YcxX1

That also results to the custom type merge function not beeing called.

I debugged it until https://github.com/InVisionApp/conjungo/blob/master/mfunc.go#L60. Where v.Type() is Ptr, and it can't find a default merge function for that kind, since there's none.

So it continues and uses https://github.com/InVisionApp/conjungo/blob/master/mfunc.go#L80 which just replaces the whole tree without deep merging further

dionysius avatar Oct 21 '20 15:10 dionysius