(value interface{}, defaultValue float64)
| 111 | } |
| 112 | |
| 113 | func assertFloat64Or(value interface{}, defaultValue float64) float64 { |
| 114 | if f, ok := value.(float64); ok { |
| 115 | return f |
| 116 | } |
| 117 | |
| 118 | return defaultValue |
| 119 | } |
| 120 | |
| 121 | func assertIntOr(value interface{}, defaultValue int) int { |
| 122 | if n, ok := value.(int); ok { |
no outgoing calls
no test coverage detected
searching dependent graphs…