1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-22 21:03:57 +00:00

Update README_nl.md

This commit is contained in:
Vic Shóstak 2020-06-19 13:25:52 +03:00 committed by GitHub
parent 27f5d1c24a
commit 73aed4d042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
.github/README_nl.md vendored
View File

@ -159,6 +159,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) {