Commit 0869df55 authored by astaxie's avatar astaxie

delete GoToFunc & add GetControllerAndAction

parent 54c89c0d
......@@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string {
c._xsrf_token + "\"/>"
}
func (c *Controller) GoToFunc(funcname string) {
if funcname[0] < 65 || funcname[0] > 90 {
panic("GoToFunc should exported function")
}
c.gotofunc = funcname
func (c *Controller) GetControllerAndAction() (controllerName, actionName string) {
return c.controllerName, c.actionName
}
//utils func for controller internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment