Documentation
¶
Overview ¶
Package starvalue defines interfaces for custom Starlark value serialization. Types that implement Marshaler or Unmarshaler control how they are converted to and from starlark.Value representations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
Marshaler is implemented by types that can marshal themselves into a Starlark value. marshalReflect checks for this interface before walking struct fields via reflection — same pattern as encoding/json.Marshaler.
type Unmarshaler ¶
Unmarshaler is implemented by types that can unmarshal a Starlark value into themselves. Unmarshal checks for this interface before assigning fields via reflection.
Click to show internal directories.
Click to hide internal directories.