MCPcopy
hub / github.com/lxn/walk / assertStringOr

Function assertStringOr

util.go:129–135  ·  view source on GitHub ↗
(value interface{}, defaultValue string)

Source from the content-addressed store, hash-verified

127}
128
129func assertStringOr(value interface{}, defaultValue string) string {
130 if s, ok := value.(string); ok {
131 return s
132 }
133
134 return defaultValue
135}
136
137func assertTimeOr(value interface{}, defaultValue time.Time) time.Time {
138 if t, ok := value.(time.Time); ok {

Callers 15

NewDateLabelFunction · 0.85
NewGroupBoxFunction · 0.85
initMethod · 0.85
NewNumberEditFunction · 0.85
newLineEditFunction · 0.85
NewLabelWithStyleFunction · 0.85
NewTextLabelWithStyleFunction · 0.85
initMethod · 0.85
NewLinkLabelFunction · 0.85
NewNumberLabelFunction · 0.85
initMethod · 0.85
NewWebViewFunction · 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…