github gofiber/fiber v1.12.0

latest releases: v3.0.0-beta.2, v2.52.4, v2.52.3...
3 years ago

๐Ÿ”ฅ New


๐Ÿงน Updates

  • The hyphen (-) and the dot (.) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87
// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
  c.Params("genus")   // prunus
  c.Params("species") // persica
})

// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
  c.Params("from")   // LAX
  c.Params("to")     // SFO
})

๐Ÿฉน Fixes

  • Avoid panic in c.Subdomains #475
  • Do not use normalized path #482
  • Fix unnecessary pass throughs for groups #487
  • Fix flag.Parse() compatibility #469

Don't miss a new fiber release

NewReleases is sending notifications on new releases.