Fiber: 馃敟 Query params

Created on 27 Feb 2020  路  3Comments  路  Source: gofiber/fiber

I can't find any normal way to get a query string params without using raw fasthttp queryString
Something like that can be very useful:

app.Get("/", func(c *fiber.Ctx) {
  queryValue := c.Query().Get("param_key")
})

Thanx!

Most helpful comment

@Ivan-Feofanov welcome!

Did you try the Query() method? https://fiber.wiki/context#query

app.Get("/", func(c *fiber.Ctx) {
  queryValue := c.Query("param_key")
})

All 3 comments

Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template!

@Ivan-Feofanov welcome!

Did you try the Query() method? https://fiber.wiki/context#query

app.Get("/", func(c *fiber.Ctx) {
  queryValue := c.Query("param_key")
})

@Ivan-Feofanov, did this solve your problem? Feel free to re-open this issue :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Badrouu17 picture Badrouu17  路  4Comments

MohamedGouaouri picture MohamedGouaouri  路  3Comments

mhf-ir picture mhf-ir  路  3Comments

bashery picture bashery  路  4Comments

slalbertojesus picture slalbertojesus  路  4Comments