httpurlgofasthttp

Get a request parameter key-value in fasthttp


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?


Solution

  • Found it

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

    The naming choice is unexpected.