1 2 3 4 5 6 7 8 910111213141516
package authimport ( "github.com/valyala/fasthttp")type params struct { q *fasthttp.Args}func (p *params) Get(key string) string { if b := p.q.Peek(key); len(b) > 0 { return string(b) } return ""}