From 4c83818ecdd4c96bc639b8d3c57c173b43af2e2b Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Sun, 18 Nov 2018 16:20:13 +0100 Subject: [PATCH] Fix Middleware comment --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index f091723..79bbb71 100644 --- a/router.go +++ b/router.go @@ -20,7 +20,7 @@ type Handle = func(*Context) error // ErrorHandle handles a request type ErrorHandle func(*Context, interface{}) -// Middleware TODO: +// Middleware is a function that runs before your route, it gets the next handler as a parameter type Middleware func(Handle) Handle // Binder reads input to dst, returns true is successful