mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-16 16:37:10 +08:00
Compare commits
2 Commits
aa49434f9e
...
d602ec84d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d602ec84d1 | ||
|
|
7f18bf3b40 |
@ -554,6 +554,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