Walk walks any router tree that implements Routes interface.
(r Routes, walkFn WalkFunc)
| 832 | |
| 833 | // Walk walks any router tree that implements Routes interface. |
| 834 | func Walk(r Routes, walkFn WalkFunc) error { |
| 835 | return walk(r, walkFn, "") |
| 836 | } |
| 837 | |
| 838 | func walk(r Routes, walkFn WalkFunc, parentRoute string, parentMw ...func(http.Handler) http.Handler) error { |
| 839 | for _, route := range r.Routes() { |