Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "reflect"
  6. )
  7.  
  8. type Hooks interface {
  9. Sing()
  10. Jump(high int)
  11. Hooks() (Hooks string)
  12. Run(second string)
  13. test(a int) (A string)
  14. }
  15.  
  16. func main() {
  17. ifaceType := reflect.TypeOf((*Hooks)(nil)).Elem()
  18.  
  19. for i := 0; i < ifaceType.NumMethod(); i++ {
  20. method := ifaceType.Method(i)
  21. fmt.Println(method)
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement