getMapFromFormData() — gin Function Reference
Architecture documentation for the getMapFromFormData() function in context.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 49dc7ecf_8115_54ea_0040_84746d2e4cbe["getMapFromFormData()"] 17a43e80_6c64_0783_a696_2f739c12fd8c["GetQueryMap()"] 17a43e80_6c64_0783_a696_2f739c12fd8c -->|calls| 49dc7ecf_8115_54ea_0040_84746d2e4cbe 3f154366_b146_8825_448c_8627f7639c62["GetPostFormMap()"] 3f154366_b146_8825_448c_8627f7639c62 -->|calls| 49dc7ecf_8115_54ea_0040_84746d2e4cbe style 49dc7ecf_8115_54ea_0040_84746d2e4cbe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context.go lines 674–695
func getMapFromFormData(m map[string][]string, key string) (map[string]string, bool) {
d := make(map[string]string)
found := false
keyLen := len(key)
for k, v := range m {
if len(k) < keyLen+3 { // key + "[" + at least one char + "]"
continue
}
if k[:keyLen] != key || k[keyLen] != '[' {
continue
}
if j := strings.IndexByte(k[keyLen+1:], ']'); j > 0 {
found = true
d[k[keyLen+1:keyLen+1+j]] = v[0]
}
}
return d, found
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getMapFromFormData() do?
getMapFromFormData() is a function in the gin codebase.
What calls getMapFromFormData()?
getMapFromFormData() is called by 2 function(s): GetPostFormMap, GetQueryMap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free