maps

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeyList

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

GetKeyList 获得map的key列表

func GetMapList

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

GetMapList 获得map某个key对应值列表

func GetStringValueList

func GetStringValueList(m map[string]string) []string

GetStringValueList 获得字符串map值列表

func KeySort

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

KeySort map按照key排序,解决map随机迭代问题

func MergeInt

func MergeInt(list ...map[string]int) map[string]int

MergeInt 合并int类型的map

func MergeInterface

func MergeInterface(list ...map[string]interface{}) map[string]interface{}

MergeInterface 合并interface类型的map

func MergeString

func MergeString(list ...map[string]string) map[string]string

MergeString 合并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