mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
commit
a514716aed
@ -14,7 +14,7 @@ func New(config ...Config) fiber.Handler
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
Import the compress package that is part of the Fiber web framework
|
Import the middleware package that is part of the Fiber web framework
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
@ -10,7 +10,7 @@ func New() fiber.Handler
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
Import the compress package that is part of the Fiber web framework
|
Import the middleware package that is part of the Fiber web framework
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
@ -22,4 +22,4 @@ After you initiate your Fiber app, you can use the following possibilities:
|
|||||||
```go
|
```go
|
||||||
// Default middleware
|
// Default middleware
|
||||||
app.Use(pprof.New())
|
app.Use(pprof.New())
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user