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

Method GetPostFormMap

context.go:667–670  ·  view source on GitHub ↗

GetPostFormMap returns a map 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

665// GetPostFormMap returns a map for a given form key, plus a boolean value
666// whether at least one value exists for the given key.
667func (c *Context) GetPostFormMap(key string) (map[string]string, bool) {
668 c.initFormCache()
669 return getMapFromFormData(c.formCache, key)
670}
671
672// getMapFromFormData return a map which satisfies conditions.
673// It parses from data with bracket notation like "key[subkey]=value" into a map.

Callers 2

PostFormMapMethod · 0.95

Calls 2

initFormCacheMethod · 0.95
getMapFromFormDataFunction · 0.85

Tested by 1