MCPcopy
hub / github.com/gin-gonic/gin / GetQueryMap

Method GetQueryMap

context.go:594–597  ·  view source on GitHub ↗

GetQueryMap returns a map for a given query key, plus a boolean value whether at least one value exists for the given key.

(key string)

Source from the content-addressed store, hash-verified

592// GetQueryMap returns a map for a given query key, plus a boolean value
593// whether at least one value exists for the given key.
594func (c *Context) GetQueryMap(key string) (map[string]string, bool) {
595 c.initQueryCache()
596 return getMapFromFormData(c.queryCache, key)
597}
598
599// PostForm returns the specified key from a POST urlencoded form or multipart form
600// when it exists, otherwise it returns an empty string `("")`.

Callers 2

QueryMapMethod · 0.95

Calls 2

initQueryCacheMethod · 0.95
getMapFromFormDataFunction · 0.85

Tested by 1