(w http.ResponseWriter, status int, txt string)
| 54 | } |
| 55 | |
| 56 | func serveError(w http.ResponseWriter, status int, txt string) { |
| 57 | h := w.Header() |
| 58 | h.Set("X-Content-Type-Options", "nosniff") |
| 59 | h.Set("X-Go-Pprof", "1") |
| 60 | h.Set("Content-Type", "text/plain; charset=utf-8") |
| 61 | h.Del("Content-Disposition") |
| 62 | w.WriteHeader(status) |
| 63 | fmt.Fprintln(w, txt) |
| 64 | } |
| 65 | |
| 66 | type profileEntry struct { |
| 67 | Name string |
no outgoing calls
no test coverage detected