tidy code

This commit is contained in:
wenxu12345
2021-12-28 16:58:01 +08:00
parent 166ec71a28
commit eb640157f2
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
// copy a by b b->a
func CopyStructFields(a interface{}, b interface{}, fields ...string) (err error) {
return copier.Copy(&a, &b)
return copier.Copy(a, b)
at := reflect.TypeOf(a)
av := reflect.ValueOf(a)