import(
"strconv"
"testing"
"reflect"
"log"
)
typemyInt int
func(this *myInt)ParseInt(str string)(result int ,err error){
result,err=strconv.Atoi(str)
return
}
func(this *myInt)Int2Str(num int,tt string)(result string){
result=strconv.Itoa(num)
return
}
funcTest_reult_demo(T *testing.T){
vars myInt
v:=reflect.TypeOf(&s)
fori:=0;i
m:=v.Method(i)
log.Println(m.Name)
}
t:=reflect.ValueOf(&s)
//
fori:=0;i
m:=t.Method(i)
forj:=0;j
log.Println(m.Type().In(j).String())
}
}
}