F64 returns the underlying 64-bit float if this is an `f64`, or panics.
()
| 137 | |
| 138 | // F64 returns the underlying 64-bit float if this is an `f64`, or panics. |
| 139 | func (v Val) F64() float64 { |
| 140 | if v.Kind() != KindF64 { |
| 141 | panic("not an f64") |
| 142 | } |
| 143 | return v.val.(float64) |
| 144 | } |
| 145 | |
| 146 | // Funcref returns the underlying function if this is a `funcref`, or panics. |
| 147 | // |