(assertF func(req *http.Request))
| 89 | } |
| 90 | |
| 91 | func mwAssert(assertF func(req *http.Request)) func(next http.Handler) http.Handler { |
| 92 | return func(next http.Handler) http.Handler { |
| 93 | return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { |
| 94 | assertF(r) |
| 95 | next.ServeHTTP(rw, r) |
| 96 | }) |
| 97 | } |
| 98 | } |
no test coverage detected