13 lines
172 B
Go
13 lines
172 B
Go
package storage
|
|
|
|
import (
|
|
"encoding/json"
|
|
"io"
|
|
)
|
|
|
|
var NewDecoder = func(r io.Reader) Decoder { return json.NewDecoder(r) }
|
|
|
|
type Decoder interface {
|
|
Decode(any) error
|
|
}
|