(code int, fmtString string, args ...interface{})
| 116 | } |
| 117 | |
| 118 | func httpError(code int, fmtString string, args ...interface{}) *HTTPError { |
| 119 | return &HTTPError{ |
| 120 | Code: code, |
| 121 | Message: fmt.Sprintf(fmtString, args...), |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // Recoverer is a middleware that recovers from panics, logs the panic (and a |
| 126 | // backtrace), and returns a HTTP 500 (Internal Server Error) status if |
no outgoing calls
no test coverage detected
searching dependent graphs…