delete GoToFunc & add GetControllerAndAction
Showing
1 changed file
with
2 additions
and
5 deletions
| ... | @@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string { | ... | @@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string { |
| 412 | c._xsrf_token + "\"/>" | 412 | c._xsrf_token + "\"/>" |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | func (c *Controller) GoToFunc(funcname string) { | 415 | func (c *Controller) GetControllerAndAction() (controllerName, actionName string) { |
| 416 | if funcname[0] < 65 || funcname[0] > 90 { | 416 | return c.controllerName, c.actionName |
| 417 | panic("GoToFunc should exported function") | ||
| 418 | } | ||
| 419 | c.gotofunc = funcname | ||
| 420 | } | 417 | } |
| 421 | 418 | ||
| 422 | //utils func for controller internal | 419 | //utils func for controller internal | ... | ... |
-
Please register or sign in to post a comment