int64

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayDiff

func ArrayDiff(arr1, arr2 []int64) (diffArr []int64)

查找在 arr1 中,但不在 arr2 中的元素

func ArrayUnique

func ArrayUnique(arr1 []int64) []int64

去重,并且不会打乱顺序

func CompareSliceAddDelInt64

func CompareSliceAddDelInt64(new, old []int64) (same bool, add []int64, del []int64)

CompareSliceAddDelInt64 判断 两个int64类型的切片是否有不同,获得新增和删除的集合,顺序无所谓

func CompareSliceAddDelString

func CompareSliceAddDelString(new, old []string) (same bool, add []string, del []string)

CompareSliceAddDelString 判断 两个 string 类型的切片是否有不同,获得新增和删除的集合,顺序无所谓

func CompareSliceInt64

func CompareSliceInt64(list1, list2 []int64) bool

CompareSliceInt64 判断 两个int64类型的切片是否有不同

func GetSearchedIndexArr

func GetSearchedIndexArr(list []int64, needle int64) int

GetSearchedIndexArr 从 int64 数组中,查找一个数,返回所在索引。如果未找到,返回 -1

func InArray

func InArray(val int64, list []int64) bool

func Int64ArrToInterfaceArr

func Int64ArrToInterfaceArr(int64Arr []int64) []interface{}

Int64ArrToInterfaceArr int64 类型的切片转为 interface{} 切片

func Int64Explode

func Int64Explode(list []int64, glue string) string

Int64Explode 将切片内容拼接成字符串

func Int64Intersect

func Int64Intersect(list1, list2 []int64) []int64

Int64Intersect 两个 int64 数组切片的交集

func Int64RemoveSomeVal

func Int64RemoveSomeVal(haystack, removeVals []int64) []int64

移除 haystack 中的一些元素

func StringArrIntersect

func StringArrIntersect(list1, list2 []string) []string

StringArrIntersect 两个 string 数组切片的交集

Types

This section is empty.

Jump to

Keyboard shortcuts

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