Skip to content

Commit

Permalink
feat: add GetAllQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
tonny-zhang committed Aug 11, 2021
1 parent 27236bd commit 1127ae6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ func (ctx *Context) GetQueryMap(key string) (dicts map[string]string, exists boo
return getValue(ctx.queryCache, key)
}

// GetAllQuery get all query value
func (ctx Context) GetAllQuery() url.Values {
ctx.initQueryCache()
return ctx.queryCache
}

// Param returns the value of the URL param.
// router.GET("/user/:id", func(c *gin.Context) {
// // a GET request to /user/john
Expand Down

0 comments on commit 1127ae6

Please sign in to comment.