HandlerFunc is an adapter to allow the use of ordinary functions as Negroni handlers. If f is a function with the appropriate signature, HandlerFunc(f) is a Handler object that calls f.
func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
| 28 | // HandlerFunc is an adapter to allow the use of ordinary functions as Negroni handlers. |
| 29 | // If f is a function with the appropriate signature, HandlerFunc(f) is a Handler object that calls f. |
| 30 | type HandlerFunc func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) |
| 31 | |
| 32 | func (h HandlerFunc) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { |
| 33 | h(rw, r, next) |
no outgoing calls
no test coverage detected
searching dependent graphs…