MCPcopy
hub / github.com/gofiber/fiber / getLocationFromRoute

Method getLocationFromRoute

res_interface_gen.go:104–104  ·  view source on GitHub ↗

getLocationFromRoute gets the URL location from a route using parameters. Nil receivers and missing routes return ErrNotFound to match Route.URL semantics.

(route *Route, params Map)

Source from the content-addressed store, hash-verified

102 // getLocationFromRoute gets the URL location from a route using parameters.
103 // Nil receivers and missing routes return ErrNotFound to match Route.URL semantics.
104 getLocationFromRoute(route *Route, params Map) (string, error)
105 // GetRouteURL generates URLs to named routes, with parameters. URLs are relative, for example: "/user/1831"
106 GetRouteURL(routeName string, params Map) (string, error)
107 // Render a template with data and sends a text/html response.

Callers 2

RouteMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 1