Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToMsg ¶ added in v0.19.0
BytesToMsg wraps a received byte slice as a Scriptling object for the data field of a receive() result. Mirrors Python's socket.recv() semantics: raw bytes always — callers decoding text use .decode() on the result.
func MsgToBytes ¶
MsgToBytes converts a Scriptling object to a byte slice for sending over the network. Dicts are JSON-encoded; Strings are UTF-8 encoded; Bytes are passed through verbatim (so binary protocols like msgpack work without corruption). Other types fall back to CoerceString.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.