Params

Method can be used to get the route parameters.

Defaults to empty string (""), if the param doesn’t exist.
  1. c.Params(param string) string
  1. // GET http://example.com/user/fenny
  2.  
  3. app.Get("/user/:name", func(c *fiber.Ctx) {
  4. c.Params("name") // "fenny"
  5. })