trySetUsingParser() — gin Function Reference
Architecture documentation for the trySetUsingParser() function in form_mapping.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 77fb8e79_5378_81f8_a5e5_43e49056cd67["trySetUsingParser()"] 0bcba57f_f00e_ed0e_0516_ee30758711c8["form_mapping.go"] 77fb8e79_5378_81f8_a5e5_43e49056cd67 -->|defined in| 0bcba57f_f00e_ed0e_0516_ee30758711c8 a3bc6e41_4537_9cf9_f14c_d1a876a83af1["setByForm()"] a3bc6e41_4537_9cf9_f14c_d1a876a83af1 -->|calls| 77fb8e79_5378_81f8_a5e5_43e49056cd67 258ae74c_d8fe_39e5_de46_9ff457fed54a["setWithProperType()"] 258ae74c_d8fe_39e5_de46_9ff457fed54a -->|calls| 77fb8e79_5378_81f8_a5e5_43e49056cd67 style 77fb8e79_5378_81f8_a5e5_43e49056cd67 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
Defined In
Called By
Source
Frequently Asked Questions
What does trySetUsingParser() do?
trySetUsingParser() is a function in the gin codebase, defined in binding/form_mapping.go.
Where is trySetUsingParser() defined?
trySetUsingParser() is defined in binding/form_mapping.go at line 201.
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