trySetUsingParser() — gin Function Reference
Architecture documentation for the trySetUsingParser() function in form_mapping.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 9a0c6acf_21a1_ed4a_350b_8832b3710523["trySetUsingParser()"] 12913085_e498_18b3_5bda_a23669e608df["setByForm()"] 12913085_e498_18b3_5bda_a23669e608df -->|calls| 9a0c6acf_21a1_ed4a_350b_8832b3710523 6153aa3f_ed0b_2237_43a1_5d4f68982dd7["setWithProperType()"] 6153aa3f_ed0b_2237_43a1_5d4f68982dd7 -->|calls| 9a0c6acf_21a1_ed4a_350b_8832b3710523 style 9a0c6acf_21a1_ed4a_350b_8832b3710523 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping.go lines 201–211
func trySetUsingParser(val string, value reflect.Value, parser string) (isSet bool, err error) {
switch parser {
case "encoding.TextUnmarshaler":
v, ok := value.Addr().Interface().(encoding.TextUnmarshaler)
if !ok {
return false, nil
}
return true, v.UnmarshalText([]byte(val))
}
return false, nil
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does trySetUsingParser() do?
trySetUsingParser() is a function in the gin codebase.
What calls trySetUsingParser()?
trySetUsingParser() is called by 2 function(s): setByForm, setWithProperType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free