81888732 by asta.xie

omit the data init

1 parent 5d392b76
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!