Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "reflect"
- )
- type Hooks interface {
- Sing()
- Jump(high int)
- Hooks() (Hooks string)
- Run(second string)
- test(a int) (A string)
- }
- func main() {
- ifaceType := reflect.TypeOf((*Hooks)(nil)).Elem()
- for i := 0; i < ifaceType.NumMethod(); i++ {
- method := ifaceType.Method(i)
- fmt.Println(method)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement