arrays

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(slice1, slice2 []int) []int

取要校验的和已经校验过的差集,找出需要校验的切片IP(找出slice1中 slice2中没有的)

func InArray

func InArray(val interface{}, array interface{}) (exists bool, index int)

判断某一个值是否含在切片之中

func Intersect

func Intersect(slice1 []int, slice2 []int) []int

取两个切片的交集

func RemoveDuplicateWithInt

func RemoveDuplicateWithInt(arr []int) []int

RemoveDuplicateWithInt 去除重复值 @author Cloud|2021-12-12 18:20:52 @param arr []int ... @return []int ...

func RemoveDuplicateWithString

func RemoveDuplicateWithString(arr []string) []string

RemoveDuplicateWithString 去除重复值 @author Cloud|2021-12-13 09:33:05 @param arr []string ... @return []string ...

func RemoveWithInt

func RemoveWithInt(arr []int, in int) []int

RemoveWithInt 删除数组中的指定值 @author Cloud|2021-12-14 12:15:15 @param arr []int ... @param in int ... @return []int ...

func RemoveWithString

func RemoveWithString(arr []string, in string) []string

RemoveWithString 删除数组中的指定值 @author Cloud|2021-12-12 18:20:21 @param arr []string ... @param in string ... @return []string ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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