You can wrap http.HandleFunc to make it behave like middleware.
You do not need to import a framework for these things:
But you linked a talk that recommends a library to deal with route variables.
> You can wrap http.HandleFunc to make it behave like middleware.
But you linked a talk that recommends a library to deal with middlewares.
Maybe you should review the links you post at first place.
Because at the end of the day it's me who end up testing and running that code, not you.
You can read more here - https://medium.com/@matryer/the-http-handlerfunc-wrapper-tec...
I don't understand this Go community mindset which says that "nothing is needed but the std lib". My use case isn't Google's or anybody else's.
If the Go team wanted an idiomatic router or middleware stack well they should have provided fully featured ones in the standard lib. There are none. It means "user land".
Does it have a middleware stack? no
Martini is a request router not a http server.