13 lines
172 B
Go

package storage
import (
"encoding/json"
"io"
)
var NewEncoder = func(w io.Writer) Encoder { return json.NewEncoder(w) }
type Encoder interface {
Encode(any) error
}