anyAnyMap

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[interface{}]interface{}, fields ...interface{}) map[interface{}]interface{}

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

func Flip

func Flip(m *map[interface{}]interface{})

交换键值

func GetArray

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

func GetBool

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

func GetFloat32

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

func GetFloat64

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

func GetInt

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

func GetInt16

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

func GetInt32

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

func GetInt64

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

func GetInt8

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

func GetInterface

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

func GetMap

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

func GetString

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

func GetTime

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

func GetUint

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

func GetUint16

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

func GetUint32

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

func GetUint64

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

func GetUint8

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

func New

func New(m ...map[interface{}]interface{}) xmap.TAnyAnyMap

func ToKeyString

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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