xhash

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(m map[string]interface{}, fields ...interface{}) map[string]interface{}

拷贝map fields 可传字段列表字符串,字符串数组,或map,如果为map可设置默认值

func GetArray

func GetArray(m map[string]interface{}, key string, def ...[]interface{}) []interface{}

func GetBool

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

func GetFloat32

func GetFloat32(m map[string]interface{}, key string, def ...float32) float32

func GetFloat64

func GetFloat64(m map[string]interface{}, key string, def ...float64) float64

func GetInt

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

func GetInt16

func GetInt16(m map[string]interface{}, key string, def ...int16) int16

func GetInt32

func GetInt32(m map[string]interface{}, key string, def ...int32) int32

func GetInt64

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

func GetInt8

func GetInt8(m map[string]interface{}, key string, def ...int8) int8

func GetInterface

func GetInterface(m map[string]interface{}, key string, def ...interface{}) interface{}

func GetMap

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

func GetPathArray

func GetPathArray(m map[string]interface{}, path string, def ...[]interface{}) []interface{}

func GetPathBool

func GetPathBool(m map[string]interface{}, path string, def ...bool) bool

func GetPathFloat

func GetPathFloat(m map[string]interface{}, path string, def ...float32) float32

func GetPathFloat64

func GetPathFloat64(m map[string]interface{}, path string, def ...float64) float64

func GetPathInt

func GetPathInt(m map[string]interface{}, path string, def ...int) int

func GetPathInt16

func GetPathInt16(m map[string]interface{}, path string, def ...int16) int16

func GetPathInt32

func GetPathInt32(m map[string]interface{}, path string, def ...int32) int32

func GetPathInt64

func GetPathInt64(m map[string]interface{}, path string, def ...int64) int64

func GetPathInt8

func GetPathInt8(m map[string]interface{}, path string, def ...int8) int8

func GetPathInterface

func GetPathInterface(m map[string]interface{}, path string, def ...interface{}) interface{}

func GetPathMap

func GetPathMap(m map[string]interface{}, path string, def ...map[string]interface{}) map[string]interface{}

func GetPathString

func GetPathString(m map[string]interface{}, path string, def ...string) string

func GetPathTime

func GetPathTime(m map[string]interface{}, path string, def ...time.Time) time.Time

func GetPathUint

func GetPathUint(m map[string]interface{}, path string, def ...uint) uint

func GetPathUint16

func GetPathUint16(m map[string]interface{}, path string, def ...uint16) uint16

func GetPathUint32

func GetPathUint32(m map[string]interface{}, path string, def ...uint32) uint32

func GetPathUint64

func GetPathUint64(m map[string]interface{}, path string, def ...uint64) uint64

func GetPathUint8

func GetPathUint8(m map[string]interface{}, path string, def ...uint8) uint8

func GetString

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

func GetTime

func GetTime(m map[string]interface{}, key string, def ...time.Time) time.Time

func GetUint

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

func GetUint16

func GetUint16(m map[string]interface{}, key string, def ...uint16) uint16

func GetUint32

func GetUint32(m map[string]interface{}, key string, def ...uint32) uint32

func GetUint64

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

func GetUint8

func GetUint8(m map[string]interface{}, key string, def ...uint8) uint8

func ToKeyString

func ToKeyString(m map[string]interface{}) string

map转换成可作为键名的字符串

Types

type THashMap

type THashMap map[string]interface{}

func New

func New(mp ...map[string]interface{}) THashMap

func (THashMap) GetArray

func (mp THashMap) GetArray(key string, def ...[]interface{}) []interface{}

func (THashMap) GetBool

func (mp THashMap) GetBool(key string, def ...bool) bool

func (THashMap) GetFloat32

func (mp THashMap) GetFloat32(key string, def ...float32) float32

func (THashMap) GetFloat64

func (mp THashMap) GetFloat64(key string, def ...float64) float64

func (THashMap) GetInt

func (mp THashMap) GetInt(key string, def ...int) int

func (THashMap) GetInt16

func (mp THashMap) GetInt16(key string, def ...int16) int16

func (THashMap) GetInt32

func (mp THashMap) GetInt32(key string, def ...int32) int32

func (THashMap) GetInt64

func (mp THashMap) GetInt64(key string, def ...int64) int64

func (THashMap) GetInt8

func (mp THashMap) GetInt8(key string, def ...int8) int8

func (THashMap) GetInterface

func (mp THashMap) GetInterface(key string, def ...interface{}) interface{}

func (THashMap) GetMap

func (mp THashMap) GetMap(key string, def ...map[string]interface{}) interface{}

func (THashMap) GetPathArray

func (mp THashMap) GetPathArray(path string, def ...[]interface{}) []interface{}

func (THashMap) GetPathBool

func (mp THashMap) GetPathBool(path string, def ...bool) bool

func (THashMap) GetPathFloat

func (mp THashMap) GetPathFloat(path string, def ...float32) float32

func (THashMap) GetPathFloat64

func (mp THashMap) GetPathFloat64(path string, def ...float64) float64

func (THashMap) GetPathInt

func (mp THashMap) GetPathInt(path string, def ...int) int

func (THashMap) GetPathInt16

func (mp THashMap) GetPathInt16(path string, def ...int16) int16

func (THashMap) GetPathInt32

func (mp THashMap) GetPathInt32(path string, def ...int32) int32

func (THashMap) GetPathInt64

func (mp THashMap) GetPathInt64(path string, def ...int64) int64

func (THashMap) GetPathInt8

func (mp THashMap) GetPathInt8(path string, def ...int8) int8

func (THashMap) GetPathInterface

func (mp THashMap) GetPathInterface(path string, def ...interface{}) interface{}

func (THashMap) GetPathMap

func (mp THashMap) GetPathMap(path string, def ...map[string]interface{}) map[string]interface{}

func (THashMap) GetPathString

func (mp THashMap) GetPathString(path string, def ...string) string

func (THashMap) GetPathUint

func (mp THashMap) GetPathUint(path string, def ...uint) uint

func (THashMap) GetPathUint16

func (mp THashMap) GetPathUint16(path string, def ...uint16) uint16

func (THashMap) GetPathUint32

func (mp THashMap) GetPathUint32(path string, def ...uint32) uint32

func (THashMap) GetPathUint64

func (mp THashMap) GetPathUint64(path string, def ...uint64) uint64

func (THashMap) GetPathUint8

func (mp THashMap) GetPathUint8(path string, def ...uint8) uint8

func (THashMap) GetString

func (mp THashMap) GetString(key string, def ...string) string

func (THashMap) GetTime

func (mp THashMap) GetTime(key string, def ...time.Time) time.Time

func (THashMap) GetUint

func (mp THashMap) GetUint(key string, def ...uint) uint

func (THashMap) GetUint16

func (mp THashMap) GetUint16(key string, def ...uint16) uint16

func (THashMap) GetUint32

func (mp THashMap) GetUint32(key string, def ...uint32) uint32

func (THashMap) GetUint64

func (mp THashMap) GetUint64(key string, def ...uint64) uint64

func (THashMap) GetUint8

func (mp THashMap) GetUint8(key string, def ...uint8) uint8

func (THashMap) Map

func (mp THashMap) Map() map[string]interface{}

func (THashMap) ToArray

func (mp THashMap) ToArray() [][]interface{}

Jump to

Keyboard shortcuts

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