Versions in this module Expand all Collapse all v2 v2.0.1 May 22, 2024 Changes in this version + type ByteEncoder struct + func (b ByteEncoder) Decode(data []byte) (interface{}, error) + func (b ByteEncoder) Encode(v interface{}) ([]byte, error) + type Encoder interface + Decode func(data []byte) (interface{}, error) + Encode func(v interface{}) ([]byte, error) + type Err struct + Err error + func (err Err) Error() string + type FloatEncoder struct + func (b FloatEncoder) Decode(data []byte) (interface{}, error) + func (b FloatEncoder) Encode(v interface{}) ([]byte, error) + type IntEncoder struct + func (b IntEncoder) Decode(data []byte) (interface{}, error) + func (b IntEncoder) Encode(data interface{}) ([]byte, error) + type NoopEncoder struct + func (_ NoopEncoder) Decode(_ []byte) (interface{}, error) + func (_ NoopEncoder) Encode(_ interface{}) ([]byte, error) + type StringEncoder struct + func (b StringEncoder) Decode(data []byte) (interface{}, error) + func (b StringEncoder) Encode(v interface{}) ([]byte, error) + type StructEncoder struct + Struct reflect.Type + func NewStructEncoder(aStruct reflect.Type) *StructEncoder + func (s StructEncoder) Decode(data []byte) (interface{}, error) + func (s StructEncoder) Encode(v interface{}) ([]byte, error)