Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2018 Changes in this version + const TypeBool + const TypeInt + const TypeString + var ErrUnableToConvertNilToStruct = errors.New(`unable to convert nil to [struct,array,slice,ptr]`) + var ErrUnableToConvertValueToStruct = errors.New(`unable to convert value to [struct,array,slice,ptr]`) + func ArgsToBytes(iargs ...interface{}) (aa [][]byte, err error) + func FromBytes(bb []byte, target interface{}) (result interface{}, err error) + func FromBytesToStruct(bb []byte, target interface{}) (result interface{}, err error) + func FromResponse(response peer.Response, target interface{}) (result interface{}, err error) + func TimestampToTime(ts *timestamp.Timestamp) time.Time + func ToBytes(value interface{}) ([]byte, error) + func UnmarshallPtr(bb []byte, to interface{}) (result interface{}, err error) + type FromByter interface + FromBytes func([]byte) (interface{}, error) + type ToByter interface + ToBytes func() ([]byte, error)