Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopyMap ¶
DeepCopy 深度拷贝一个map
func SplitMapTo ¶
func SplitMapTo(maps *map[string]interface{}, length int) (splitMapArray []map[string]interface{}, groups int)
将一个map的key:value分成最大数量length个的若干个map 组成的array,分成了groups个 当maps为空map时,groups = 0
func StructToMap ¶
将结构体转换为map obj为某个结构体的实例 tag为结构体里某项的tag,例如`json:"id"`的"json" 注意:如果用于存为redis的hashSet,嵌套的struct转为map可能有问题 注意:如果存到redis,time.Time也有问题
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.