OAuth

/app/lib/auth/webparams.go (213 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package auth

import (
"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 ""
}