Get a request parameter key-value in fasthttp

est picture est · Sep 1, 2016 · Viewed 10.9k times · Source

http://127.0.0.1:8080/x?haha=1

I want to get something like ctx.QueryArgs().Get("haha")

is it possible in golang's fasthttp package?

Answer

est picture est · Sep 1, 2016

Found it

ctx.QueryArgs().Peek("haha")

The naming choice is unexpected.