Create empty mountFields instance
(app *App)
| 30 | |
| 31 | // Create empty mountFields instance |
| 32 | func 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 |