mirror of https://github.com/gofiber/fiber.git
✨ Clearify New Signatures
parent
4de6250e74
commit
b1688a0113
8
app.go
8
app.go
|
@ -220,7 +220,13 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
// New creates a new Fiber named instance.
|
// 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 {
|
func New(settings ...*Settings) *App {
|
||||||
// Create a new app
|
// Create a new app
|
||||||
app := &App{
|
app := &App{
|
||||||
|
|
Loading…
Reference in New Issue