Versions in this module Expand all Collapse all v1 v1.0.1 Jul 17, 2019 v1.0.0 Jul 10, 2019 Changes in this version + func ElapsedTime(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func ErrorIf(condition bool, status int) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func ErrorWhen(condition func() (bool, error), status int) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func If(condition bool, then http.HandlerFunc) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func MiddlewareIf(condition bool, ...) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func MiddlewareWhen(condition func() (bool, error), ...) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func When(condition func() (bool, error), then http.HandlerFunc) func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Headers map[string]string + func (h *Headers) ServeMiddleware(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Writer interface