mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-11 19:47:00 +08:00
Merge 7f18bf3b400ce654a1b8a6e85e22e3e92a4abcde into e88fc8927a52b74f55bec0351604a56ac0aa1c51
This commit is contained in:
commit
6325b673f9
@ -580,6 +580,13 @@ func (c *Context) GetQueryArray(key string) (values []string, ok bool) {
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllQueryParams check cache and return query cache
|
||||
// If not found cache, parses RawQuery and returns the corresponding values.
|
||||
func (c *Context) GetAllQueryParams() (params map[string][]string) {
|
||||
c.initQueryCache()
|
||||
return c.queryCache
|
||||
}
|
||||
|
||||
// QueryMap returns a map for a given query key.
|
||||
func (c *Context) QueryMap(key string) (dicts map[string]string) {
|
||||
dicts, _ = c.GetQueryMap(key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user