mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-13 09:18:15 +08:00
Compare commits
2 Commits
74641a6806
...
6325b673f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6325b673f9 | ||
|
|
7f18bf3b40 |
@ -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