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 32c96007_7c8e_739e_ee0b_c4532af3bddf["convertTo()"] 58254ca5_cf66_1c85_790e_dedb24cd61bd["UnmarshalParam()"] 58254ca5_cf66_1c85_790e_dedb24cd61bd -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf d22238b8_2aba_3373_9494_1c0955330b93["TestMappingCustomArrayUri()"] d22238b8_2aba_3373_9494_1c0955330b93 -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf 25763e0a_8068_98cf_6845_ecf63971f80d["TestMappingCustomArrayForm()"] 25763e0a_8068_98cf_6845_ecf63971f80d -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf 24fab81e_0ccc_d7ce_2040_003b714a1739["TestMappingCustomArrayOfArrayUri()"] 24fab81e_0ccc_d7ce_2040_003b714a1739 -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf 8d673839_eedc_d790_dd97_4c5f6a7b535f["TestMappingCustomArrayOfArrayForm()"] 8d673839_eedc_d790_dd97_4c5f6a7b535f -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf 82f141a9_cfc1_da27_873f_93a2a09d460e["convertToOidUnmarshalText()"] 82f141a9_cfc1_da27_873f_93a2a09d460e -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf style 32c96007_7c8e_739e_ee0b_c4532af3bddf 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
Called By
Source
Frequently Asked Questions
What does convertTo() do?
convertTo() is a function in the gin codebase.
What calls convertTo()?
convertTo() is called by 6 function(s): TestMappingCustomArrayForm, TestMappingCustomArrayOfArrayForm, TestMappingCustomArrayOfArrayUri, TestMappingCustomArrayUri, UnmarshalParam, convertToOidUnmarshalText.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free