xmap

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

map api操作库

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) []interface{}

func GetFloat32

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

func GetFloat32Def

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

func GetFloat64

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

func GetFloat64Def

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

func GetInt

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

func GetInt16

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

func GetInt32

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

func GetInt32Def

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

func GetInt64

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

func GetInt64Def

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

func GetInt8

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

func GetInt8Def

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

func GetIntDef

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

func GetMap

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

func GetObject

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

func GetStr

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

func GetStrDef

func GetStrDef(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 GetUint16

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

func GetUint16Def

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

func GetUint32

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

func GetUint32Def

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

func GetUint64

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

func GetUint64Def

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

func GetUint8

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

func GetUint8Def

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

func GetUintDef

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

func ToKeyString

func ToKeyString(m map[string]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