R
https://play.golang.org/p/8T3b94JU6fF
Size: a a a
R
DF
СС
AB
СС
AB
СС
AB
DF
// The middleware configuration happens before anything, this middleware also applies to serving the swagger.json document.
// So this is a good place to plug in a panic handling middleware, logging and metrics
func setupGlobalMiddleware(handler http.Handler) http.Handler {
return your.Package(handler)
}
DF
yours.Handlers(api)
return setupGlobalMiddleware(api.Serve(setupMiddlewares))
}
DF
DF
DF
DF