Browse Source

slice embedded in struct will not be optimized by interface{}

Tao Wen 8 năm trước cách đây
mục cha
commit
a6673c983a
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      feature_reflect_extension.go

+ 0 - 2
feature_reflect_extension.go

@@ -282,8 +282,6 @@ func createStructDescriptor(cfg *frozenConfig, typ reflect.Type, bindings []*Bin
 			}
 			fallthrough
 		case reflect.Map:
-			fallthrough
-		case reflect.Slice:
 			onePtrOptimization = true
 		}
 	}