(v any)
| 34 | } |
| 35 | |
| 36 | func (w *JSUPWriter) WriteControl(v any) error { |
| 37 | // XXX Would rather use sup.Marshal here instead of importing reflection |
| 38 | // into this package, but there's an issue with marshaling nil |
| 39 | // interfaces, which occurs frequently with jsupio.Object.Types. For now |
| 40 | // just reflect here. |
| 41 | return w.encoder.Encode(describe{ |
| 42 | Type: reflect.TypeOf(v).Name(), |
| 43 | Value: v, |
| 44 | }) |
| 45 | } |
| 46 | |
| 47 | func (w *JSUPWriter) Close() error { |
| 48 | return nil |