HasValue returns true if value of given name exists.
(name string)
| 109 | |
| 110 | // HasValue returns true if value of given name exists. |
| 111 | func (c *Context) HasValue(name string) bool { |
| 112 | _, ok := c.Data[name] |
| 113 | return ok |
| 114 | } |
| 115 | |
| 116 | // HTML responses template with given status. |
| 117 | func (c *Context) HTML(status int, name string) { |