array

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapIntKeys

func GetMapIntKeys(m map[int]interface{}) []int

GetMapIntKeys get map keys,return slice

func IntInSlice

func IntInSlice(search int, slice []int) bool

IntInSlice Check int Element Exists in a Slice

func StringInSlice added in v1.23.0

func StringInSlice(search string, slice []string) bool

StringInSlice Check int Element Exists in a Slice

Types

type IntegerRange added in v1.24.0

type IntegerRange struct {
	Low  int
	High int
}

IntegerRange use for MergeIntRange

func MergeIntRange added in v1.24.0

func MergeIntRange(data []IntegerRange) []IntegerRange

MergeIntRange input [1,3], [2,6], [5,10] [2] becomes [1,10] input [11,13], [2,6], [5,10] [2,0] [30,0] becomes [1,10] [11,13] [30,0]

Jump to

Keyboard shortcuts

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