Skip to content

Commit 3710097

Browse files
Add docs from gofiber/fiber@96891c9
1 parent 640582e commit 3710097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/middleware/recover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ Import the middleware package that is part of the Fiber web framework
1919
```go
2020
import (
2121
"github.com/gofiber/fiber/v3"
22-
"github.com/gofiber/fiber/v3/middleware/recover"
22+
recoverer "github.com/gofiber/fiber/v3/middleware/recover"
2323
)
2424
```
2525

2626
After you initiate your Fiber app, you can use the following possibilities:
2727

2828
```go
2929
// Initialize default config
30-
app.Use(recover.New())
30+
app.Use(recoverer.New())
3131

3232
// This panic will be caught by the middleware
3333
app.Get("/", func(c fiber.Ctx) error {

0 commit comments

Comments
 (0)