mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-23 14:10:00 +08:00
1
This commit is contained in:
parent
b224b1ab40
commit
c16a994fd4
@ -7,7 +7,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CopyAny(from, to interface{}) {
|
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() {
|
if !t.CanSet() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user