From b8e06f636536412587521d82ec50a972260b72af Mon Sep 17 00:00:00 2001 From: miraclesu Date: Thu, 25 Jul 2013 22:26:31 +0800 Subject: [PATCH] Add ParseForm function for *Controller --- controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller.go b/controller.go index bca9f978..4dd89a81 100644 --- a/controller.go +++ b/controller.go @@ -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) }