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

Method GetRouteURL

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

GetRouteURL generates URLs to named routes, with parameters. URLs are relative, for example: "/user/1831"

(routeName string, params Map)

Source from the content-addressed store, hash-verified

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.
108 // We support the following engines: https://github.com/gofiber/template
109 Render(name string, bind any, layouts ...string) error

Implementers 1

Calls

no outgoing calls