ing
This commit is contained in:
commit
9a567d18b7
12
reflect/type.go
Normal file
12
reflect/type.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package reflect
|
||||
|
||||
import "reflect"
|
||||
|
||||
// GetTypeInfo is function
|
||||
func GetTypeInfo(t reflect.Type) (realType reflect.Type, pkgName string, name string) {
|
||||
if reflect.Ptr == t.Kind() {
|
||||
return GetTypeInfo(t.Elem())
|
||||
}
|
||||
|
||||
return t, t.PkgPath(), t.Name()
|
||||
}
|
Loading…
Reference in New Issue
Block a user