internal

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBool

func DecodeBool(data []byte) (interface{}, error)

func DecodeComplex128

func DecodeComplex128(data []byte) (interface{}, error)

func DecodeComplex64

func DecodeComplex64(data []byte) (interface{}, error)

func DecodeFloat32

func DecodeFloat32(data []byte) (interface{}, error)

func DecodeFloat64

func DecodeFloat64(data []byte) (interface{}, error)

func DecodeInt

func DecodeInt(data []byte) (interface{}, error)

func DecodeInt16

func DecodeInt16(data []byte) (interface{}, error)

func DecodeInt32

func DecodeInt32(data []byte) (interface{}, error)

func DecodeInt64

func DecodeInt64(data []byte) (interface{}, error)

func DecodeInt8

func DecodeInt8(data []byte) (interface{}, error)

func DecodeString

func DecodeString(data []byte) (interface{}, error)

func DecodeTime

func DecodeTime(data []byte) (interface{}, error)

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 DecodeUint(data []byte) (interface{}, error)

func DecodeUint16

func DecodeUint16(data []byte) (interface{}, error)

func DecodeUint32

func DecodeUint32(data []byte) (interface{}, error)

func DecodeUint64

func DecodeUint64(data []byte) (interface{}, error)

func DecodeUint8

func DecodeUint8(data []byte) (interface{}, error)

Types

type TypeDecoder added in v0.2.2

type TypeDecoder interface {
	Decode([]byte) (interface{}, error)
}

func DecoderOf

func DecoderOf(t reflect.Type) TypeDecoder

type TypeDecoderFunc added in v0.2.2

type TypeDecoderFunc func([]byte) (interface{}, error)

func (TypeDecoderFunc) Decode added in v0.2.2

func (fn TypeDecoderFunc) Decode(data []byte) (interface{}, error)

Decode calls fn(data).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL