HandlerFunc takes a custom Handler func and converts it to http.HandlerFunc
(fn Handler)
| 24 | |
| 25 | // HandlerFunc takes a custom Handler func and converts it to http.HandlerFunc |
| 26 | func HandlerFunc(fn Handler) http.HandlerFunc { |
| 27 | return http.HandlerFunc(Handler(fn).ServeHTTP) |
| 28 | } |
| 29 | |
| 30 | // HandleError handles errors |
| 31 | func HandleError(w http.ResponseWriter, r *http.Request, err error) { |
no test coverage detected