Documentation ¶
Overview ¶
Package io contains the serialization interfaces used by perun.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder interface { // Decode reads an object from a stream. // If the stream fails, the underlying error is returned. Decode(io.Reader) error }
A Decoder can decode itself from a stream.
type Encoder ¶
type Encoder interface { // Encode writes itself to a stream. // If the stream fails, the underlying error is returned. Encode(io.Writer) error }
An Encoder can encode itself into a stream.
type Serializer ¶ added in v0.2.0
Serializer objects can be serialized into and from streams.
Click to show internal directories.
Click to hide internal directories.