MCPcopy
hub / github.com/gofiber/fiber / newMountFields

Function newMountFields

mount.go:32–37  ·  view source on GitHub ↗

Create empty mountFields instance

(app *App)

Source from the content-addressed store, hash-verified

30
31// Create empty mountFields instance
32func newMountFields(app *App) *mountFields {
33 return &mountFields{
34 appList: map[string]*App{"": app},
35 appListKeys: make([]string, 0),
36 }
37}
38
39// Mount attaches another app instance as a sub-router along a routing path.
40// It's very useful to split up a large API as many independent routers and

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected