go-server-timing
go-server-timing copied to clipboard
Extract handler to standalone for easier usage in libraries
Because the handler is currently entirely inside the middleware, it is very difficult to fine tune it (such as enabling/disabling it), and takes a reasonably large work around when used with a library like echo or gin.
Please put the handler into a standalone function so that it can be called manually from whatever library a user chooses/ in a more flexible manner in general.