Writing middleware in #golang and how Go makes it so much fun.
Mat Ryer

Thanks a lot for this helpful post, Mat Ryer! I have a question: Why do you create the middleware around `http.Handler` and not directly around `http.HandlerFunc` as it’s done here https://gowebexamples.github.io/advanced-middleware/ ? I think that’s a little cleaner but I’m not sure whether it has downsides.

Like what you read? Give Tobi Fuhrimann a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.