mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-23 06:02:34 +08:00
1
This commit is contained in:
parent
b224b1ab40
commit
c16a994fd4
@ -7,7 +7,10 @@ import (
|
||||
)
|
||||
|
||||
func CopyAny(from, to interface{}) {
|
||||
t := reflect.ValueOf(to).Elem()
|
||||
t := reflect.ValueOf(to)
|
||||
if t.Kind() == reflect.Ptr {
|
||||
t = t.Elem()
|
||||
}
|
||||
if !t.CanSet() {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user