URLParamExists returns true if the url parameter exists, otherwise false.
(name string)
| 1499 | |
| 1500 | // URLParamExists returns true if the url parameter exists, otherwise false. |
| 1501 | func (ctx *Context) URLParamExists(name string) bool { |
| 1502 | _, exists := ctx.getQuery()[name] |
| 1503 | return exists |
| 1504 | } |
| 1505 | |
| 1506 | // URLParamDefault returns the get parameter from a request, if not found then "def" is returned. |
| 1507 | func (ctx *Context) URLParamDefault(name string, def string) string { |