(r *http.Request, key, fallback string)
| 447 | } |
| 448 | |
| 449 | func queryDefault(r *http.Request, key, fallback string) string { |
| 450 | value := r.URL.Query().Get(key) |
| 451 | if value == "" { |
| 452 | return fallback |
| 453 | } |
| 454 | return value |
| 455 | } |
| 456 | |
| 457 | func decodeJSON(r *http.Request, out any) error { |
| 458 | defer r.Body.Close() |
no test coverage detected