From 9f4d8394e00da5418fc5993aaa8fc78b92d7d927 Mon Sep 17 00:00:00 2001 From: Vishwa Bhat Date: Sat, 27 Jun 2020 09:08:54 +0530 Subject: [PATCH] Doc: Incorrect Config in Custom Config example Under Custom Config example `CompressWithConfig()` , `param` should be `middleware.CompressConfig` instead of `middleware.LoggerConfig` --- middleware/compress.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/compress.md b/middleware/compress.md index 8f492ed769..1b2db1cfb8 100644 --- a/middleware/compress.md +++ b/middleware/compress.md @@ -21,7 +21,7 @@ func main() { app.Use(middleware.Compress(middleware.CompressLevelBestSpeed)) // Custom Config - app.Use(middleware.CompressWithConfig(middleware.LoggerConfig{ + app.Use(middleware.CompressWithConfig(middleware.CompressConfig{ Next: func(ctx *fiber.Ctx) bool { return strings.HasPrefix(ctx.Path(), "/static") }, @@ -63,4 +63,4 @@ var CompressConfigDefault = CompressConfig{ Next: nil, Level: CompressLevelDefault, } -``` \ No newline at end of file +```