1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 18:00:54 +00:00

Add ParseForm function for *Controller

This commit is contained in:
miraclesu 2013-07-25 22:26:31 +08:00
parent f552338822
commit b8e06f6365

View File

@ -264,6 +264,10 @@ func (c *Controller) Input() url.Values {
return c.Ctx.Request.Form
}
func (c *Controller) ParseForm(obj interface{}) error {
return ParseForm(c.Input(), obj)
}
func (c *Controller) GetString(key string) string {
return c.Input().Get(key)
}