(paramName string, r *http.Request)
| 32 | } |
| 33 | |
| 34 | func getRequiredQueryParam(paramName string, r *http.Request) (string, error) { |
| 35 | param := r.URL.Query().Get(paramName) |
| 36 | if param == "" { |
| 37 | return "", ErrorQueryParamRequired(paramName) |
| 38 | } |
| 39 | return param, nil |
| 40 | } |
| 41 | |
| 42 | func getOptionalQParam(paramName string, r *http.Request) string { |
| 43 | return r.URL.Query().Get(paramName) |
no test coverage detected