Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2024 v0.0.10 Apr 14, 2024 Changes in this version + func Open(v any, filename string, f DecoderFunc) error + func OpenFS(v any, fsys fs.FS, filename string, f DecoderFunc) error + func OpenFiles(v any, filenames []string, f DecoderFunc) error + func OpenFilesFS(v any, fsys fs.FS, filenames []string, f DecoderFunc) error + func Read(v any, reader io.Reader, f DecoderFunc) error + func ReadBytes(v any, data []byte, f DecoderFunc) error + func Save(v any, filename string, f EncoderFunc) error + func Write(v any, writer io.Writer, f EncoderFunc) error + func WriteBytes(v any, f EncoderFunc) ([]byte, error) + type Decoder interface + Decode func(v any) error + type DecoderFunc func(r io.Reader) Decoder + func NewDecoderFunc[T Decoder](f func(r io.Reader) T) DecoderFunc + type Encoder interface + Encode func(v any) error + type EncoderFunc func(w io.Writer) Encoder + func NewEncoderFunc[T Encoder](f func(w io.Writer) T) EncoderFunc