URLParam returns the get parameter from a request, if any.
(name string)
| 1514 | |
| 1515 | // URLParam returns the get parameter from a request, if any. |
| 1516 | func (ctx *Context) URLParam(name string) string { |
| 1517 | return ctx.URLParamDefault(name, "") |
| 1518 | } |
| 1519 | |
| 1520 | // URLParamSlice a shortcut of ctx.Request().URL.Query()[name]. |
| 1521 | // Like `URLParam` but it returns all values instead of a single string separated by commas. |