improve doc

This commit is contained in:
Samuel Berthe
2023-04-30 20:35:01 +02:00
parent ebac6b7c97
commit 9031a33267
2 changed files with 17 additions and 31 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func main() {
// Add the sloggin middleware to all routes.
// The middleware will log all requests attributes under a "http" group.
router.Use(sloggin.New(logger.WithGroup("http")))
router.Use(sloggin.New(logger))
// Example pong request.
router.GET("/pong", func(c *gin.Context) {