(r *http.Request, out any)
| 455 | } |
| 456 | |
| 457 | func decodeJSON(r *http.Request, out any) error { |
| 458 | defer r.Body.Close() |
| 459 | return json.NewDecoder(r.Body).Decode(out) |
| 460 | } |
| 461 | |
| 462 | func writeResult(w http.ResponseWriter, value any, err error) { |
| 463 | if err != nil { |
no outgoing calls
no test coverage detected