(w http.ResponseWriter, v any)
| 468 | } |
| 469 | |
| 470 | func smtpJSON(w http.ResponseWriter, v any) { |
| 471 | w.Header().Set("Content-Type", "application/json") |
| 472 | json.NewEncoder(w).Encode(v) //nolint:errcheck |
| 473 | } |
| 474 | |
| 475 | func smtpError(w http.ResponseWriter, msg string, code int) { |
| 476 | w.Header().Set("Content-Type", "application/json") |
no outgoing calls
no test coverage detected