How to list out the method name in an interface type?

Viewed 2575

For example,

type FooService interface {
    Foo1(x int) int
    Foo2(x string) string
}

What I am attempting to do is getting list ["Foo1", "Foo2"] using runtime reflection.

1 Answers
Related