conjungo
conjungo copied to clipboard
Yields different results if a structs field is a pointer vs. value
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