mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 13:39:22 +00:00
oops
This commit is contained in:
parent
85a114e591
commit
c8bc511e04
@ -50,7 +50,7 @@ func (c *Context) VarInt64(key string) (int64, error) {
|
|||||||
|
|
||||||
func (c *Context) QueryInt64(key string) (int64, error) {
|
func (c *Context) QueryInt64(key string) (int64, error) {
|
||||||
query := c.Req.URL.Query()
|
query := c.Req.URL.Query()
|
||||||
return strconv.ParseInt(query.Get("page"), 10, 64)
|
return strconv.ParseInt(query.Get(key), 10, 64)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) Redirect(url string) {
|
func (c *Context) Redirect(url string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user