tidy code

This commit is contained in:
wenxu12345
2021-12-28 16:36:02 +08:00
parent 508ccf4f9c
commit f43e1a1018
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import (
// copy a by b b->a
func CopyStructFields(a interface{}, b interface{}, fields ...string) (err error) {
copier.Copy(&a, &b)
return nil
return copier.Copy(&a, &b)
at := reflect.TypeOf(a)
av := reflect.ValueOf(a)
bt := reflect.TypeOf(b)