maps

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNumValueMap added in v1.1.6

func FilterNumValueMap(set map[string]int, operator string, num int) map[string]int

FilterNumValueMap() - filter map by number values. Operator indicates the logical operators used on the operation (>,>=,==,!=,<,<=). Num is the number criteria for the filtration

func FilterStringValueMapStr added in v1.1.6

func FilterStringValueMapStr(set map[string]string, operator string, value string)

FilterStringValueMapStr() - filters the map with value given. Value property will be filtered depending on the operation passed (==,!=). It will be compared to value given in the argument

func GroupMapByNumberInKey

func GroupMapByNumberInKey(set map[string]string) map[int][]string

GroupMapByNumberInKey() - filter the maps by number in keys. e.g: Test1a,Test2,Test1b. It's expected to have map[1:[Test1a Test1b] 2:[Test2]] where Test1a and Test1b are group together because they have common number in keys which is 1

Types

This section is empty.

Jump to

Keyboard shortcuts

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