Versions in this module Expand all Collapse all v1 v1.1.2 Oct 28, 2019 Changes in this version + var B64Encoder = base64Encoder + var Encoder ByteEncoder = hexEncoder + var HexEncoder = hexEncoder + var RawB64Encoder = base64Encoder + func FromJSON(d []byte, o interface{}) error + func FromWire(d []byte, o interface{}) error + func ToJSON(o interface{}) ([]byte, error) + func ToText(o interface{}) (string, error) + func ToWire(o interface{}) ([]byte, error) + type ByteEncoder interface + Marshal func(bytes []byte) ([]byte, error) + Unmarshal func(dst *[]byte, src []byte) error + type Bytes []byte + func (b *Bytes) UnmarshalJSON(data []byte) error + func (b Bytes) Bytes() []byte + func (b Bytes) MarshalJSON() ([]byte, error) + func (b Bytes) String() string + type Mapper struct + func NewMapper(base interface{}) Mapper + func (m Mapper) FromJSON(data []byte) (interface{}, error) + func (m Mapper) RegisterImplementation(data interface{}, kind string, b byte) Mapper + func (m Mapper) ToJSON(data interface{}) ([]byte, error)