mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
Merge 7f18bf3b400ce654a1b8a6e85e22e3e92a4abcde into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
d602ec84d1
@ -554,6 +554,13 @@ func (c *Context) GetQueryArray(key string) (values []string, ok bool) {
|
|||||||
return
|
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.
|
// QueryMap returns a map for a given query key.
|
||||||
func (c *Context) QueryMap(key string) (dicts map[string]string) {
|
func (c *Context) QueryMap(key string) (dicts map[string]string) {
|
||||||
dicts, _ = c.GetQueryMap(key)
|
dicts, _ = c.GetQueryMap(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user