Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yeah, ingenious is simple |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tell me please, why the Chain().HandlerFunc() returns type 'Handler' instead of 'HandlerFunc'?
I use it to add some middleware for single route, and i need to call ServeHTTP method. Like this:
r := chi.NewRouter()
r.Get("/", chi.Chain(middleware.Logger).HandlerFunc(homeHandler).ServeHTTP)
Beta Was this translation helpful? Give feedback.
All reactions