(w http.ResponseWriter, v any)
| 62 | } |
| 63 | |
| 64 | func apiJSON(w http.ResponseWriter, v any) { |
| 65 | w.Header().Set("Content-Type", "application/json") |
| 66 | json.NewEncoder(w).Encode(v) |
| 67 | } |
| 68 | |
| 69 | func apiError(w http.ResponseWriter, msg string, code int) { |
| 70 | w.Header().Set("Content-Type", "application/json") |
no outgoing calls
no test coverage detected