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

Method GetPostFormArray

context.go:653–657  ·  view source on GitHub ↗

GetPostFormArray returns a slice of strings for a given form 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

651// GetPostFormArray returns a slice of strings for a given form key, plus
652// a boolean value whether at least one value exists for the given key.
653func (c *Context) GetPostFormArray(key string) (values []string, ok bool) {
654 c.initFormCache()
655 values, ok = c.formCache[key]
656 return
657}
658
659// PostFormMap returns a map for a given form key.
660func (c *Context) PostFormMap(key string) (dicts map[string]string) {

Callers 3

GetPostFormMethod · 0.95
PostFormArrayMethod · 0.95

Calls 1

initFormCacheMethod · 0.95

Tested by 1