12 lines
159 B
Go
12 lines
159 B
Go
|
|
package reflect
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"reflect"
|
||
|
|
)
|
||
|
|
|
||
|
|
func FuncReflect(inter interface{}) {
|
||
|
|
typein := reflect.TypeOf(inter).Elem()
|
||
|
|
fmt.Println("typein:", typein)
|
||
|
|
}
|