methodName returns the caller of the function calling methodName
()
| 251 | |
| 252 | // methodName returns the caller of the function calling methodName |
| 253 | func methodName() string { |
| 254 | pc, _, _, _ := runtime.Caller(2) |
| 255 | f := runtime.FuncForPC(pc) |
| 256 | if f == nil { |
| 257 | return "unknown method" |
| 258 | } |
| 259 | return f.Name() |
| 260 | } |
| 261 | |
| 262 | type typeQueue struct { |
| 263 | t reflect.Type |