From 0869df55885208c1502da2182695383bd4a9eb90 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 17 Dec 2013 20:39:25 +0800 Subject: [PATCH] delete GoToFunc & add GetControllerAndAction --- controller.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/controller.go b/controller.go index 563b0b9f..eb070d34 100644 --- a/controller.go +++ b/controller.go @@ -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