We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701296d commit d92c354Copy full SHA for d92c354
pcopy.go
@@ -89,7 +89,7 @@ func pcopyInner(dst, src interface{}, opt options) error {
89
// 如果顶层对象是结构体,肯定会有预热结构
90
// 但是是其它类型可能没有预热结构, 所以这里要判断一下
91
if dstValue.Type().Kind() != reflect.Struct && srcValue.Type().Kind() != reflect.Struct {
92
- saveToCache(dstSrcType{
+ defer saveToCache(dstSrcType{
93
dst: dstValue.Type(),
94
src: srcValue.Type(),
95
},
0 commit comments