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

Method QueryArray

context.go:563–566  ·  view source on GitHub ↗

QueryArray returns a slice of strings for a given query key. The length of the slice depends on the number of params with the given key.

(key string)

Source from the content-addressed store, hash-verified

561// QueryArray returns a slice of strings for a given query key.
562// The length of the slice depends on the number of params with the given key.
563func (c *Context) QueryArray(key string) (values []string) {
564 values, _ = c.GetQueryArray(key)
565 return
566}
567
568func (c *Context) initQueryCache() {
569 if c.queryCache == nil {

Callers 1

Calls 1

GetQueryArrayMethod · 0.95

Tested by 1