(w http.ResponseWriter, status int, v any)
| 85 | } |
| 86 | |
| 87 | func writeJSON(w http.ResponseWriter, status int, v any) { |
| 88 | w.Header().Set("Content-Type", "application/json") |
| 89 | w.WriteHeader(status) |
| 90 | json.NewEncoder(w).Encode(v) |
| 91 | } |
no outgoing calls
no test coverage detected