Skip to content

Commit

Permalink
Update ctx.md
Browse files Browse the repository at this point in the history
reformat ctx.Queries() example
  • Loading branch information
ReneWerner87 authored Jun 19, 2023
1 parent f4a9cb5 commit f86423d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/api/ctx.md
Original file line number Diff line number Diff line change
Expand Up @@ -1106,11 +1106,11 @@ func (c *Ctx) Queries() (map[string]string, error)
// GET http://example.com/?name=alex&want_pizza=false&id=

app.Get("/", func(c *fiber.Ctx) error {
m := c.Queries()
m["name"] // "alex"
m["want_pizza"] // "false"
m["id"] // ""
// ...
m := c.Queries()
m["name"] // "alex"
m["want_pizza"] // "false"
m["id"] // ""
// ...
})
```
Expand Down

0 comments on commit f86423d

Please sign in to comment.