convertTo() — gin Function Reference
Architecture documentation for the convertTo() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 5c85b160_cd17_8c57_0c64_51be3c9bcbc4["convertTo()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 f3387ecc_282e_28d8_ab12_ca859eaebf9c["TestMappingCustomArrayUri()"] f3387ecc_282e_28d8_ab12_ca859eaebf9c -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 0af86d90_a06e_b30e_ff8e_c1a7a7691245["TestMappingCustomArrayForm()"] 0af86d90_a06e_b30e_ff8e_c1a7a7691245 -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 17b657b3_194f_0180_ab24_d9dfc00bf580["TestMappingCustomArrayOfArrayUri()"] 17b657b3_194f_0180_ab24_d9dfc00bf580 -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 b562a386_5536_697b_d0c5_0f589425edab["TestMappingCustomArrayOfArrayForm()"] b562a386_5536_697b_d0c5_0f589425edab -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 1285f4f5_f0ab_d88b_9429_cec4c58637a5["convertToOidUnmarshalText()"] 1285f4f5_f0ab_d88b_9429_cec4c58637a5 -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 style 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 677–690
func convertTo(s string) (objectID, error) {
var nilObjectID objectID
if len(s) != 24 {
return nilObjectID, errors.New("invalid format")
}
var oid [12]byte
_, err := hex.Decode(oid[:], []byte(s))
if err != nil {
return nilObjectID, err
}
return oid, nil
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does convertTo() do?
convertTo() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is convertTo() defined?
convertTo() is defined in binding/form_mapping_test.go at line 677.
What calls convertTo()?
convertTo() is called by 5 function(s): TestMappingCustomArrayForm, TestMappingCustomArrayOfArrayForm, TestMappingCustomArrayOfArrayUri, TestMappingCustomArrayUri, convertToOidUnmarshalText.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free