maps

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32MapInOrder

func Int32MapInOrder(m map[int32]interface{}) [][]interface{}

Int32MapInOrder ... Extract int32 map keys in order, generates [[key1, value1], [key2, value2] ...]

func Int64MapInOrder

func Int64MapInOrder(m map[int64]interface{}) [][]interface{}

Int64MapInOrder ... Extract int64 map keys in order, generates [[key1, value1], [key2, value2] ...]

func MergeInt32Maps

func MergeInt32Maps(maps ...map[int32]interface{}) map[int32]interface{}

MergeInt32Maps ... Merge int32 maps into one int32 map

func MergeInt64Maps

func MergeInt64Maps(maps ...map[int64]interface{}) map[int64]interface{}

MergeInt64Maps ... Merge int64 maps into one int64 map

func MergeStringMaps

func MergeStringMaps(maps ...map[string]interface{}) map[string]interface{}

MergeStringMaps ... Merge string maps into one string map

func MergeUint32Maps

func MergeUint32Maps(maps ...map[uint32]interface{}) map[uint32]interface{}

MergeUint32Maps ... Merge uint32 maps into one uint32 map

func MergeUint64Maps

func MergeUint64Maps(maps ...map[uint64]interface{}) map[uint64]interface{}

MergeUint64Maps ... Merge uint64 maps into one uint64 map

func MustStringToJSONMap

func MustStringToJSONMap(str string) map[string]interface{}

MustStringToJSONMap ... Marshal a JSON-format string to map, ignore error

func MustStringsToJSONMaps

func MustStringsToJSONMaps(strs ...string) (res []map[string]interface{})

MustStringsToJSONMaps ... Marshal multiple JSON-format strings to a slice of maps, ignore error

func StringMapInOrder

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

StringMapInOrder ... Extract string map keys in order, generates [[key1, value1], [key2, value2] ...]

func StringToJSONMap

func StringToJSONMap(str string) (map[string]interface{}, error)

StringToJSONMap ... Marshal a JSON-format string to map

func StringsToJSONMaps

func StringsToJSONMaps(strs ...string) (res []map[string]interface{}, err error)

StringsToJSONMaps ... Marshal multiple JSON-format strings to a slice of maps

func Uint32MapInOrder

func Uint32MapInOrder(m map[uint32]interface{}) [][]interface{}

Uint32MapInOrder ... Extract uint32 map keys in order, generates [[key1, value1], [key2, value2] ...]

func Uint64MapInOrder

func Uint64MapInOrder(m map[uint64]interface{}) [][]interface{}

Uint64MapInOrder ... Extract uint64 map keys in order, generates [[key1, value1], [key2, value2] ...]

Types

This section is empty.

Jump to

Keyboard shortcuts

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