Documentation ¶
Index ¶
- func DecodeBool(data []byte) (interface{}, error)
- func DecodeComplex128(data []byte) (interface{}, error)
- func DecodeComplex64(data []byte) (interface{}, error)
- func DecodeFloat32(data []byte) (interface{}, error)
- func DecodeFloat64(data []byte) (interface{}, error)
- func DecodeInt(data []byte) (interface{}, error)
- func DecodeInt16(data []byte) (interface{}, error)
- func DecodeInt32(data []byte) (interface{}, error)
- func DecodeInt64(data []byte) (interface{}, error)
- func DecodeInt8(data []byte) (interface{}, error)
- func DecodeString(data []byte) (interface{}, error)
- func DecodeTime(data []byte) (interface{}, error)
- func DecodeUint(data []byte) (interface{}, error)
- func DecodeUint16(data []byte) (interface{}, error)
- func DecodeUint32(data []byte) (interface{}, error)
- func DecodeUint64(data []byte) (interface{}, error)
- func DecodeUint8(data []byte) (interface{}, error)
- type TypeDecoder
- type TypeDecoderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBool ¶
func DecodeComplex128 ¶
func DecodeComplex64 ¶
func DecodeFloat32 ¶
func DecodeFloat64 ¶
func DecodeInt16 ¶
func DecodeInt32 ¶
func DecodeInt64 ¶
func DecodeInt8 ¶
func DecodeString ¶
func DecodeTime ¶
DecodeTime parses data bytes as time.Time in UTC timezone. Supported formats of the data bytes are: 1. RFC3339Nano string, e.g. "2006-01-02T15:04:05-07:00" 2. Unix timestamp, e.g. "1136239445"
func DecodeUint ¶
func DecodeUint16 ¶
func DecodeUint32 ¶
func DecodeUint64 ¶
func DecodeUint8 ¶
Types ¶
type TypeDecoder ¶ added in v0.2.2
func DecoderOf ¶
func DecoderOf(t reflect.Type) TypeDecoder
type TypeDecoderFunc ¶ added in v0.2.2
func (TypeDecoderFunc) Decode ¶ added in v0.2.2
func (fn TypeDecoderFunc) Decode(data []byte) (interface{}, error)
Decode calls fn(data).
Click to show internal directories.
Click to hide internal directories.