ce77c273 by astaxie

add Destructor func

1 parent d2e0960b
......@@ -59,6 +59,10 @@ func (c *Controller) Prepare() {
}
func (c *Controller) Finish() {
}
func (c *Controller) Destructor() {
if c.CruSession != nil {
c.CruSession.SessionRelease()
}
......
......@@ -388,6 +388,8 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
}
}
}
method = vc.MethodByName("Destructor")
method.Call(in)
}
//if no matches to url, throw a not found exception
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!