HandlerName returns the main handler's name. For example if the handler is "handleGetUsers()", this function will return "main.handleGetUsers".
()
| 147 | // HandlerName returns the main handler's name. For example if the handler is "handleGetUsers()", |
| 148 | // this function will return "main.handleGetUsers". |
| 149 | func (c *Context) HandlerName() string { |
| 150 | return nameOfFunction(c.handlers.Last()) |
| 151 | } |
| 152 | |
| 153 | // HandlerNames returns a list of all registered handlers for this context in descending order, |
| 154 | // following the semantics of HandlerName() |