Versions in this module Expand all Collapse all v0 v0.2.0 Apr 21, 2026 Changes in this version type Codec + func PipeCodec[A, B, C any](first Codec[A, B], second Codec[B, C]) Codec[A, C] type Decoder + func PipeDecoder[A, B, C any](first Decoder[A, B], second Decoder[B, C]) Decoder[A, C] type Encoder + func PipeEncoder[A, B, C any](first Encoder[A, B], second Encoder[B, C]) Encoder[A, C] v0.1.0 Apr 10, 2026 Changes in this version + type Codec interface + Decode func(b []byte, v *T) error + Encode func(v T) ([]byte, error) + type Decoder interface + Decode func(v any) error + type DecoderFunc func(v any) error + func (f DecoderFunc[T]) Decode(v any) error + type Encoder interface + Encode func(v T) error + type EncoderFunc func(v T) error + func (f EncoderFunc[T]) Encode(v T) error + type StreamCodec interface + Decode func(r io.Reader, v *T) error + Encode func(w io.Writer, v T) error + type StreamDecoder interface + Decode func(r io.Reader, v *T) error + type StreamDecoderFunc func(r io.Reader, v *T) error + func (f StreamDecoderFunc[T]) Decode(r io.Reader, v *T) error + type StreamEncoder interface + Encode func(w io.Writer, v T) error + type StreamEncoderFunc func(w io.Writer, v T) error + func (f StreamEncoderFunc[T]) Encode(w io.Writer, v T) error