MCPcopy Create free account
hub / github.com/lxn/walk / assertTimeOr

Function assertTimeOr

util.go:137–143  ·  view source on GitHub ↗
(value interface{}, defaultValue time.Time)

Source from the content-addressed store, hash-verified

135}
136
137func assertTimeOr(value interface{}, defaultValue time.Time) time.Time {
138 if t, ok := value.(time.Time); ok {
139 return t
140 }
141
142 return defaultValue
143}
144
145func ParseFloat(s string) (float64, error) {
146 s = strings.TrimSpace(s)

Callers 2

NewDateLabelFunction · 0.85
newDateEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…