HandlerFileLine returns the current running handler's function source file and line information. Useful mostly when debugging.
()
| 652 | // HandlerFileLine returns the current running handler's function source file and line information. |
| 653 | // Useful mostly when debugging. |
| 654 | func (ctx *Context) HandlerFileLine() (file string, line int) { |
| 655 | return HandlerFileLine(ctx.handlers[ctx.currentHandlerIndex]) |
| 656 | } |
| 657 | |
| 658 | // RouteName returns the route name that this handler is running on. |
| 659 | // Note that it may return empty on not found handlers. |
no test coverage detected