This repository has been archived on 2026-09-05. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
gotoolkit/model/encoding.go
2024-11-23 19:41:21 +01:00

17 lines
228 B
Go

package model
import "io"
type Decoder interface {
Decode([]byte, any) error
DecodeReader(io.Reader, any) error
}
type Encoder interface {
Encode(any) ([]byte, error)
}
type EncoderDecoder interface {
Encoder
Decoder
}