Documentation ¶
Index ¶
- func Bool(any interface{}) bool
- func BytesToNumber(bytes []byte) int
- func BytesToStr(bytes []byte) string
- func BytesToUint16(data []byte) uint16
- func BytesToUint16L(data []byte) uint16
- func BytesToUint32(data []byte) uint32
- func BytesToUint32L(data []byte) uint32
- func BytesToUint64(data []byte) uint64
- func BytesToUint64L(data []byte) uint64
- func GetBool(m map[string]interface{}, key string, defaultValue bool) bool
- func GetInt(m map[string]interface{}, key string, defaultValue int) int
- func GetInt64(m map[string]interface{}, key string, defaultValue int64) int64
- func GetMap(m map[string]interface{}, key string) map[string]interface{}
- func GetMapSlice(m map[string]interface{}, key string) []map[string]interface{}
- func GetString(m map[string]interface{}, key string, defaultValue string) string
- func GetUint(m map[string]interface{}, key string, defaultValue uint) uint
- func GetUint64(m map[string]interface{}, key string, defaultValue uint64) uint64
- func GobToMap(data []byte) (map[string]interface{}, error)
- func Int(any interface{}, defaultValue int) int
- func Int64(any interface{}, defaultValue int64) int64
- func JsonToMap(data []byte) (map[string]interface{}, error)
- func MapToGob(m map[string]interface{}) ([]byte, error)
- func MapToJson(m map[string]interface{}) ([]byte, error)
- func NumberToBytes(n int) []byte
- func ReadGob(r io.Reader, in interface{}) error
- func ReadGobToMap(r io.Reader) (map[string]interface{}, error)
- func ReadJson(r io.Reader, in interface{}) error
- func ReadJsonToMap(r io.Reader) (map[string]interface{}, error)
- func StrToBytes(str string) []byte
- func String(any interface{}, defaultValue string) string
- func Uint(any interface{}, defaultValue uint) uint
- func Uint16ToBytes(i uint16) []byte
- func Uint16ToBytesL(i uint16) []byte
- func Uint32ToBytes(i uint32) []byte
- func Uint32ToBytesL(i uint32) []byte
- func Uint64(any interface{}, defaultValue uint64) uint64
- func Uint64ToBytes(i uint64) []byte
- func Uint64ToBytesL(i uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToNumber ¶ added in v1.2.0
func BytesToStr ¶ added in v1.2.0
func BytesToUint16 ¶
func BytesToUint16L ¶
func BytesToUint32 ¶
func BytesToUint32L ¶
func BytesToUint64 ¶
func BytesToUint64L ¶
func GetMapSlice ¶
func NumberToBytes ¶ added in v1.2.0
func StrToBytes ¶ added in v1.2.0
func Uint16ToBytes ¶
func Uint16ToBytesL ¶
func Uint32ToBytes ¶
func Uint32ToBytesL ¶
func Uint64ToBytes ¶
func Uint64ToBytesL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.