mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-03 00:12:48 +08:00
tidy code
This commit is contained in:
parent
1cb7b6a67e
commit
2293253d52
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
// copy a by b b->a
|
// copy a by b b->a
|
||||||
func CopyStructFields(a interface{}, b interface{}, fields ...string) (err error) {
|
func CopyStructFields(a interface{}, b interface{}, fields ...string) (err error) {
|
||||||
copier.Copy(&a, &b)
|
copier.Copy(a, &b)
|
||||||
at := reflect.TypeOf(a)
|
at := reflect.TypeOf(a)
|
||||||
av := reflect.ValueOf(a)
|
av := reflect.ValueOf(a)
|
||||||
bt := reflect.TypeOf(b)
|
bt := reflect.TypeOf(b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user