Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToMsg added in v0.19.0

func BytesToMsg(data []byte) object.Object

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

func MsgToBytes(msg object.Object) ([]byte, object.Object)

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.

Jump to

Keyboard shortcuts

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