diff --git a/utils/reflects/struct.go b/utils/reflects/struct.go index 8777274..ab2a78b 100644 --- a/utils/reflects/struct.go +++ b/utils/reflects/struct.go @@ -1,20 +1,10 @@ package reflects import ( - "fmt" "reflect" "unsafe" ) -// DeepCopy 深拷贝 -func DeepCopy[T any](src T) T { - vof := reflect.Indirect(reflect.ValueOf(src)) - tof := vof.Type() - fmt.Println(tof) - - return src -} - // GetPtrUnExportFiled 获取指针类型的未导出字段 func GetPtrUnExportFiled(s reflect.Value, filedIndex int) reflect.Value { v := s.Elem().Field(filedIndex)