(w http.ResponseWriter, data any)
| 82 | } |
| 83 | |
| 84 | func jsonWrite(w http.ResponseWriter, data any) { |
| 85 | w.Header().Set("Content-Type", "application/json") |
| 86 | json.NewEncoder(w).Encode(data) |
| 87 | } |
| 88 | |
| 89 | func jsonError(w http.ResponseWriter, status int, err error) { |
| 90 | w.WriteHeader(status) |
no test coverage detected