mapFormByTag() — gin Function Reference
Architecture documentation for the mapFormByTag() function in form_mapping.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce["mapFormByTag()"] 0bcba57f_f00e_ed0e_0516_ee30758711c8["form_mapping.go"] 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce -->|defined in| 0bcba57f_f00e_ed0e_0516_ee30758711c8 a21a633b_ee23_4cbf_eec5_d34685cc70a3["mapURI()"] a21a633b_ee23_4cbf_eec5_d34685cc70a3 -->|calls| 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce 84ce1de0_9e55_5477_da03_c28203030510["mapForm()"] 84ce1de0_9e55_5477_da03_c28203030510 -->|calls| 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce 316852c0_0834_a340_f94f_8dc80b954322["MapFormWithTag()"] 316852c0_0834_a340_f94f_8dc80b954322 -->|calls| 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce 2ed089eb_3e1b_8f1c_7e6a_ddf3bdad4885["setFormMap()"] 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce -->|calls| 2ed089eb_3e1b_8f1c_7e6a_ddf3bdad4885 539b92cd_a54f_79eb_70b0_e310bfb7f895["mappingByPtr()"] 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce -->|calls| 539b92cd_a54f_79eb_70b0_e310bfb7f895 style 8c91bf4c_a9b8_4a42_4cbf_6177b486d2ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping.go lines 46–63
func mapFormByTag(ptr any, form map[string][]string, tag string) error {
// Check if ptr is a map
ptrVal := reflect.ValueOf(ptr)
var pointed any
if ptrVal.Kind() == reflect.Ptr {
ptrVal = ptrVal.Elem()
pointed = ptrVal.Interface()
}
if ptrVal.Kind() == reflect.Map &&
ptrVal.Type().Key().Kind() == reflect.String {
if pointed != nil {
ptr = pointed
}
return setFormMap(ptr, form)
}
return mappingByPtr(ptr, formSource(form), tag)
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does mapFormByTag() do?
mapFormByTag() is a function in the gin codebase, defined in binding/form_mapping.go.
Where is mapFormByTag() defined?
mapFormByTag() is defined in binding/form_mapping.go at line 46.
What does mapFormByTag() call?
mapFormByTag() calls 2 function(s): mappingByPtr, setFormMap.
What calls mapFormByTag()?
mapFormByTag() is called by 3 function(s): MapFormWithTag, mapForm, mapURI.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free