Versions in this module Expand all Collapse all v1 v1.0.0 Oct 17, 2018 Changes in this version + var ErrInputExcess = errors.New("input is too long") + var ErrInvalidLen = errors.New("invalid length") + var ErrShortRead = errors.New("input is too short") + var ErrTooLong = errors.New("too long payload") + func Decode(line []byte) (payload []byte, err error) + func Encode(payload []byte) ([]byte, error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(payload *[]byte) error + func (d *Decoder) DecodeUntilFlush(lines *[][]byte) (err error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(payload []byte) error + type EncoderDecoder struct + func NewEncoderDecoder(rw io.ReadWriter) *EncoderDecoder