(w http.ResponseWriter, status int, v any)
| 128 | } |
| 129 | |
| 130 | func writeAppJSON(w http.ResponseWriter, status int, v any) { |
| 131 | w.WriteHeader(status) |
| 132 | _ = json.NewEncoder(w).Encode(v) |
| 133 | } |
| 134 | |
| 135 | func writeAppNotFound(w http.ResponseWriter, what string) { |
| 136 | writeError(w, http.StatusNotFound, "not_found", what+" not found") |
no test coverage detected