添加反射

This commit is contained in:
JACKYMYPERSON
2025-08-30 05:53:10 +08:00
parent 2cf33460f8
commit ee1bbb59a4
2 changed files with 22 additions and 9 deletions

11
reflect/reflect.go Normal file
View File

@@ -0,0 +1,11 @@
package reflect
import (
"fmt"
"reflect"
)
func FuncReflect(inter interface{}) {
typein := reflect.TypeOf(inter).Elem()
fmt.Println("typein:", typein)
}