setTimeDuration() — gin Function Reference
Architecture documentation for the setTimeDuration() function in form_mapping.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 9729b3be_f4f0_d5e7_9b2f_f869176bf88d["setTimeDuration()"] 6153aa3f_ed0b_2237_43a1_5d4f68982dd7["setWithProperType()"] 6153aa3f_ed0b_2237_43a1_5d4f68982dd7 -->|calls| 9729b3be_f4f0_d5e7_9b2f_f869176bf88d style 9729b3be_f4f0_d5e7_9b2f_f869176bf88d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping.go lines 510–521
func setTimeDuration(val string, value reflect.Value) error {
if val == "" {
val = "0"
}
d, err := time.ParseDuration(val)
if err != nil {
return err
}
value.Set(reflect.ValueOf(d))
return nil
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setTimeDuration() do?
setTimeDuration() is a function in the gin codebase.
What calls setTimeDuration()?
setTimeDuration() is called by 1 function(s): setWithProperType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free