13 lines
170 B
Go

package ocean
import (
"encoding/json"
"io"
)
var NewDecoder = func(r io.Reader) Decoder { return json.NewDecoder(r) }
type Decoder interface {
Decode(any) error
}