添加反射
This commit is contained in:
11
reflect/reflect.go
Normal file
11
reflect/reflect.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package reflect
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
func FuncReflect(inter interface{}) {
|
||||
typein := reflect.TypeOf(inter).Elem()
|
||||
fmt.Println("typein:", typein)
|
||||
}
|
||||
Reference in New Issue
Block a user