gobx

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package gobx bridges interpreted types that implement encoding.BinaryMarshaler/BinaryUnmarshaler through native encoding/gob.

gob inspects a value's reflect type for those interfaces, but an interpreted value reaches (*gob.Encoder).Encode / (*gob.Decoder).Decode as a synthetic struct via an `any` parameter, where the default any-bridging only exposes display methods. These arg proxies wrap the mvm Iface in a host type that implements BinaryMarshaler/BinaryUnmarshaler and dispatches the interpreted method back through the VM. gob does not name-match external-encoder types on decode, so distinct encode/decode proxy types round-trip. Mirrors stdlib/jsonx.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL