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

Function assertFloat64Or

util.go:113–119  ·  view source on GitHub ↗
(value interface{}, defaultValue float64)

Source from the content-addressed store, hash-verified

111}
112
113func assertFloat64Or(value interface{}, defaultValue float64) float64 {
114 if f, ok := value.(float64); ok {
115 return f
116 }
117
118 return defaultValue
119}
120
121func assertIntOr(value interface{}, defaultValue int) int {
122 if n, ok := value.(int); ok {

Callers 2

NewNumberEditFunction · 0.85
NewNumberLabelFunction · 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…