Unmarshal the request body or parameters
(r *http.Request, in interface{})
| 18 | |
| 19 | // Unmarshal the request body or parameters |
| 20 | func (c *Context) Unmarshal(r *http.Request, in interface{}) error { |
| 21 | return Unmarshal(r, in) |
| 22 | } |
| 23 | |
| 24 | // Accepts a type |
| 25 | func Accepts(r *http.Request) Acceptable { |