(w http.ResponseWriter, v any)
| 173 | } |
| 174 | |
| 175 | func writeJSON(w http.ResponseWriter, v any) { |
| 176 | w.Header().Set("Content-Type", "application/json") |
| 177 | json.NewEncoder(w).Encode(v) |
| 178 | } |
| 179 | |
| 180 | func writeError(w http.ResponseWriter, msg string, code int) { |
| 181 | w.Header().Set("Content-Type", "application/json") |
no outgoing calls
no test coverage detected