Versions in this module Expand all Collapse all v0 v0.0.10 Oct 12, 2019 v0.0.9 Oct 6, 2019 Changes in this version + var ErrInvalidType = errors.New("invalid type, expecting map or struct") + var ErrMissingType = errors.New("missing type") + func Marshal(obj interface{}, fit bool) ([]byte, error) + func Read(input *ReadInput) (interface{}, error) + func RegisterTypes() + func Write(input *WriteInput) error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + type Iterator struct + Count int + Decoder *stdgob.Decoder + Limit int + Type reflect.Type + func NewIterator(input *NewIteratorInput) *Iterator + func (it *Iterator) Next() (interface{}, error) + type NewIteratorInput struct + Limit int + Reader io.Reader + Type reflect.Type + type ReadInput struct + Limit int + Reader io.Reader + Type reflect.Type + type WriteInput struct + Fit bool + Limit int + Object interface{} + Writer io.Writer + type Writer struct + func NewWriter(w io.Writer, fit bool) *Writer + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) WriteObject(obj interface{}) error + func (w *Writer) WriteObjects(objects interface{}) error