tidy code

This commit is contained in:
wenxu12345 2021-12-28 16:26:59 +08:00
parent 1cb7b6a67e
commit 2293253d52

View File

@ -8,7 +8,7 @@ import (
// copy a by b b->a
func CopyStructFields(a interface{}, b interface{}, fields ...string) (err error) {
copier.Copy(&a, &b)
copier.Copy(a, &b)
at := reflect.TypeOf(a)
av := reflect.ValueOf(a)
bt := reflect.TypeOf(b)