Recursively update data on child routers.
(fn func(subMux *Mux))
| 495 | |
| 496 | // Recursively update data on child routers. |
| 497 | func (mx *Mux) updateSubRoutes(fn func(subMux *Mux)) { |
| 498 | for _, r := range mx.tree.routes() { |
| 499 | subMux, ok := r.SubRoutes.(*Mux) |
| 500 | if !ok { |
| 501 | continue |
| 502 | } |
| 503 | fn(subMux) |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | // updateRouteHandler builds the single mux handler that is a chain of the middleware |
| 508 | // stack, as defined by calls to Use(), and the tree router (Mux) itself. After this |
no test coverage detected