conv

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(any interface{}) bool

func BytesToNumber added in v1.2.0

func BytesToNumber(bytes []byte) int

func BytesToStr added in v1.2.0

func BytesToStr(bytes []byte) string

func BytesToUint16

func BytesToUint16(data []byte) uint16

func BytesToUint16L

func BytesToUint16L(data []byte) uint16

func BytesToUint32

func BytesToUint32(data []byte) uint32

func BytesToUint32L

func BytesToUint32L(data []byte) uint32

func BytesToUint64

func BytesToUint64(data []byte) uint64

func BytesToUint64L

func BytesToUint64L(data []byte) uint64

func GetBool

func GetBool(m map[string]interface{}, key string, defaultValue bool) bool

func GetInt

func GetInt(m map[string]interface{}, key string, defaultValue int) int

func GetInt64

func GetInt64(m map[string]interface{}, key string, defaultValue int64) int64

func GetMap

func GetMap(m map[string]interface{}, key string) map[string]interface{}

func GetMapSlice

func GetMapSlice(m map[string]interface{}, key string) []map[string]interface{}

func GetString

func GetString(m map[string]interface{}, key string, defaultValue string) string

func GetUint

func GetUint(m map[string]interface{}, key string, defaultValue uint) uint

func GetUint64

func GetUint64(m map[string]interface{}, key string, defaultValue uint64) uint64

func GobToMap

func GobToMap(data []byte) (map[string]interface{}, error)

func Int

func Int(any interface{}, defaultValue int) int

func Int64

func Int64(any interface{}, defaultValue int64) int64

func JsonToMap

func JsonToMap(data []byte) (map[string]interface{}, error)

func MapToGob

func MapToGob(m map[string]interface{}) ([]byte, error)

func MapToJson

func MapToJson(m map[string]interface{}) ([]byte, error)

func NumberToBytes added in v1.2.0

func NumberToBytes(n int) []byte

func ReadGob

func ReadGob(r io.Reader, in interface{}) error

func ReadGobToMap

func ReadGobToMap(r io.Reader) (map[string]interface{}, error)

func ReadJson

func ReadJson(r io.Reader, in interface{}) error

func ReadJsonToMap

func ReadJsonToMap(r io.Reader) (map[string]interface{}, error)

func StrToBytes added in v1.2.0

func StrToBytes(str string) []byte

func String

func String(any interface{}, defaultValue string) string

func Uint

func Uint(any interface{}, defaultValue uint) uint

func Uint16ToBytes

func Uint16ToBytes(i uint16) []byte

func Uint16ToBytesL

func Uint16ToBytesL(i uint16) []byte

func Uint32ToBytes

func Uint32ToBytes(i uint32) []byte

func Uint32ToBytesL

func Uint32ToBytesL(i uint32) []byte

func Uint64

func Uint64(any interface{}, defaultValue uint64) uint64

func Uint64ToBytes

func Uint64ToBytes(i uint64) []byte

func Uint64ToBytesL

func Uint64ToBytesL(i uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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