Documentation ¶
Index ¶
- func ArrayDiff(arr1, arr2 []int64) (diffArr []int64)
- func ArrayUnique(arr1 []int64) []int64
- func CompareSliceAddDelInt64(new, old []int64) (same bool, add []int64, del []int64)
- func CompareSliceAddDelString(new, old []string) (same bool, add []string, del []string)
- func CompareSliceInt64(list1, list2 []int64) bool
- func GetSearchedIndexArr(list []int64, needle int64) int
- func InArray(val int64, list []int64) bool
- func Int64ArrToInterfaceArr(int64Arr []int64) []interface{}
- func Int64Explode(list []int64, glue string) string
- func Int64Intersect(list1, list2 []int64) []int64
- func Int64RemoveSomeVal(haystack, removeVals []int64) []int64
- func StringArrIntersect(list1, list2 []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareSliceAddDelInt64 ¶
CompareSliceAddDelInt64 判断 两个int64类型的切片是否有不同,获得新增和删除的集合,顺序无所谓
func CompareSliceAddDelString ¶
CompareSliceAddDelString 判断 两个 string 类型的切片是否有不同,获得新增和删除的集合,顺序无所谓
func CompareSliceInt64 ¶
CompareSliceInt64 判断 两个int64类型的切片是否有不同
func GetSearchedIndexArr ¶
GetSearchedIndexArr 从 int64 数组中,查找一个数,返回所在索引。如果未找到,返回 -1
func Int64ArrToInterfaceArr ¶
func Int64ArrToInterfaceArr(int64Arr []int64) []interface{}
Int64ArrToInterfaceArr int64 类型的切片转为 interface{} 切片
func Int64Intersect ¶
Int64Intersect 两个 int64 数组切片的交集
func Int64RemoveSomeVal ¶
移除 haystack 中的一些元素
func StringArrIntersect ¶
StringArrIntersect 两个 string 数组切片的交集
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.