This commit is contained in:
sidbusy 2016-07-13 14:32:45 +08:00
parent d1d5747616
commit 6da4dad20d

View File

@ -29,6 +29,8 @@ func Bind(val interface{}) HandlerFunc {
obj := reflect.New(typ).Interface()
if c.Bind(obj) == nil {
c.Set(BindKey, obj)
} else {
c.Abort()
}
}
}