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

Method GetQueryArray

context.go:580–584  ·  view source on GitHub ↗

GetQueryArray returns a slice of strings 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

578// GetQueryArray returns a slice of strings for a given query key, plus
579// a boolean value whether at least one value exists for the given key.
580func (c *Context) GetQueryArray(key string) (values []string, ok bool) {
581 c.initQueryCache()
582 values, ok = c.queryCache[key]
583 return
584}
585
586// QueryMap returns a map for a given query key.
587func (c *Context) QueryMap(key string) (dicts map[string]string) {

Callers 3

GetQueryMethod · 0.95
QueryArrayMethod · 0.95

Calls 1

initQueryCacheMethod · 0.95

Tested by 1