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.
Click to show internal directories.
Click to hide internal directories.