omit the data init
Showing
1 changed file
with
0 additions
and
1 deletions
| ... | @@ -62,7 +62,6 @@ type ControllerInterface interface { | ... | @@ -62,7 +62,6 @@ type ControllerInterface interface { |
| 62 | 62 | ||
| 63 | // Init generates default values of controller operations. | 63 | // Init generates default values of controller operations. |
| 64 | func (c *Controller) Init(ctx *context.Context, controllerName, actionName string, app interface{}) { | 64 | func (c *Controller) Init(ctx *context.Context, controllerName, actionName string, app interface{}) { |
| 65 | c.Data = make(map[interface{}]interface{}) | ||
| 66 | c.Layout = "" | 65 | c.Layout = "" |
| 67 | c.TplNames = "" | 66 | c.TplNames = "" |
| 68 | c.controllerName = controllerName | 67 | c.controllerName = controllerName | ... | ... |
-
Please register or sign in to post a comment