Adds HandlerName()

This commit is contained in:
Manu Mtz-Almeida
2015-06-25 19:44:52 +02:00
parent 1a7ab6e4d5
commit 95c08d5f84
3 changed files with 15 additions and 1 deletions

View File

@ -72,6 +72,10 @@ func (c *Context) Copy() *Context {
return &cp
}
func (c *Context) HandlerName() string {
return nameOfFunction(c.handlers.Last())
}
/************************************/
/*********** FLOW CONTROL ***********/
/************************************/