Query returns the URL query parameter for key.
(key string)
| 612 | |
| 613 | // Query returns the URL query parameter for key. |
| 614 | func (c *Ctx) Query(key string) string { |
| 615 | return c.Request.URL.Query().Get(key) |
| 616 | } |
| 617 | |
| 618 | // JSON encodes data as JSON and writes it to the response. |
| 619 | func (c *Ctx) JSON(data interface{}, status ...int) error { |
no test coverage detected