Funcref returns the underlying function if this is a `funcref`, or panics. Note that a null `funcref` is returned as `nil`.
()
| 147 | // |
| 148 | // Note that a null `funcref` is returned as `nil`. |
| 149 | func (v Val) Funcref() *Func { |
| 150 | if v.Kind() != KindFuncref { |
| 151 | panic("not a funcref") |
| 152 | } |
| 153 | return v.val.(*Func) |
| 154 | } |
| 155 | |
| 156 | // Get returns the underlying 64-bit float if this is an `f64`, or panics. |
| 157 | func (v Val) Get() interface{} { |