(w http.ResponseWriter, status int, payload any)
| 232 | } |
| 233 | |
| 234 | func writeNodeJSON(w http.ResponseWriter, status int, payload any) { |
| 235 | w.Header().Set("Content-Type", "application/json; charset=utf-8") |
| 236 | w.WriteHeader(status) |
| 237 | json.NewEncoder(w).Encode(payload) //nolint:errcheck |
| 238 | } |
no test coverage detected