why the use of http.HandlerFunc
Author: rickb777Created Mar 28, 2017Updated Jul 31, 2026
Labelsfuture
Why does Negroni use both http.Handler and http.HandlerFunc in its API? It's rather inconsistent.
func New(handlers ...Handler) *Negronicompared with the third parameter in
type Handler interface {
ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
}Source: urfave/negroni