Params
Method can be used to get the route parameters.
Defaults to empty string (""
), if the param doesn’t exist.
- c.Params(param string) string
- // GET http://example.com/user/fenny
- app.Get("/user/:name", func(c *fiber.Ctx) {
- c.Params("name") // "fenny"
- })