13 lines
172 B
Go
Raw Normal View History

2023-07-10 14:27:41 +00:00
package storage
2023-07-07 12:38:41 +00:00
import (
"encoding/json"
"io"
)
var NewEncoder = func(w io.Writer) Encoder { return json.NewEncoder(w) }
type Encoder interface {
Encode(any) error
}