Clearify New Signatures

pull/570/head
Fenny 2020-07-09 15:58:47 +02:00
parent 4de6250e74
commit b1688a0113
1 changed files with 7 additions and 1 deletions

8
app.go
View File

@ -220,7 +220,13 @@ var (
)
// New creates a new Fiber named instance.
// You can pass optional settings when creating a new instance.
// You can pass an optional settings by passing a *Settings struct.
//
// - app.New()
// - app.New(&fiber.Settings{
// Prefork: true,
// ServerHeader: "Fiber",
// })
func New(settings ...*Settings) *App {
// Create a new app
app := &App{