From 29f94e0e913a7cc0a6b1ec1eb35890ea3c46545e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vic=20Sh=C3=B3stak?= Date: Fri, 19 Jun 2020 13:26:10 +0300 Subject: [PATCH] Update README_pt.md --- .github/README_pt.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/README_pt.md b/.github/README_pt.md index e96f0410..7ee87c4c 100644 --- a/.github/README_pt.md +++ b/.github/README_pt.md @@ -155,6 +155,18 @@ func main() { fmt.Printf("Name: %s, Age: %s", c.Params("name"), c.Params("age")) // => Name: john, Age: }) + + // GET /plantae/prunus.persica + app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) { + fmt.Printf("Genius: %s, Species: %s", c.Params("genus"), c.Params("species")) + // => Genius: prunus, Species: persica + }) + + // GET /flights/LAX-SFO + app.Get("/flights/:from-:to", func(c *fiber.Ctx) { + fmt.Printf("From: %s, To: %s", c.Params("from"), c.Params("to")) + // => From: LAX, To: SFO + }) // GET /api/register app.Get("/api/*", func(c *fiber.Ctx) {