Documentation ¶
Overview ¶
Package routes implements registered urls and parameter substitution
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedRoutes ¶
NamedRoutes is a map of all named routes, to provide something like https://github.com/gorilla/mux#registered-urls
func (NamedRoutes) Path ¶
func (n NamedRoutes) Path(name string, params ...interface{}) string
Path returns a route's path with params substituted, panics if used inproperly.
Click to show internal directories.
Click to hide internal directories.