13 lines
170 B
Go

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