BuildVarsFunc registers a new route with a custom function for modifying route variables before building a URL.
(f BuildVarsFunc)
| 353 | // BuildVarsFunc registers a new route with a custom function for modifying |
| 354 | // route variables before building a URL. |
| 355 | func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route { |
| 356 | return r.NewRoute().BuildVarsFunc(f) |
| 357 | } |
| 358 | |
| 359 | // Walk walks the router and all its sub-routers, calling walkFn for each route |
| 360 | // in the tree. The routes are walked in the order they were added. Sub-routers |