gf/geg/other/test.go
2017-12-13 11:36:29 +08:00

20 lines
236 B
Go

package main
import (
"reflect"
"fmt"
)
type B struct {
Name string
}
func(b *B) Test() {
}
func main() {
b := &B{}
t := reflect.ValueOf(b).Elem().Type()
//n := reflect.New(t)
fmt.Println(t.NumMethod())
}