package main
import (
"fmt"
"reflect"
)
type Student struct {
}
func (s *Student) Listen() {
fmt.Println("listen")
}
func main() {
student := Student{}
value := reflect.ValueOf(&student)
f := value.MethodByName("Listen")
f.Call([]reflect.Value{})
}
08-25
782
11-28
150
10-27
248