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

Method initQueryCache

context.go:568–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

566}
567
568func (c *Context) initQueryCache() {
569 if c.queryCache == nil {
570 if c.Request != nil && c.Request.URL != nil {
571 c.queryCache = c.Request.URL.Query()
572 } else {
573 c.queryCache = url.Values{}
574 }
575 }
576}
577
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.

Callers 3

GetQueryArrayMethod · 0.95
GetQueryMapMethod · 0.95

Calls 1

QueryMethod · 0.80

Tested by 1