Versions in this module Expand all Collapse all v0 v0.7.0 Jan 24, 2022 Changes in this version + type Codec struct + func New(format Format) *Codec + func (c *Codec) Read(reader Reader, object interface{}) (time.Time, error) + func (c *Codec) Write(writer Writer, object interface{}) (time.Time, error) + func (c *Codec) WriteWithTime(writer WriterWithTime, t time.Time, object interface{}) error + type Format interface + Decode func(input []byte, output interface{}) error + Encode func(input interface{}, output []byte) (out []byte, err error) + func JSON() Format + type Reader interface + Read func() (time.Time, []byte, error) + type Writer interface + Write func(entry []byte) (time.Time, error) + type WriterWithTime interface + WriteWithTime func(t time.Time, entry []byte) error