mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 19:45:58 +08:00
note
This commit is contained in:
+1
-1
Submodule cmd/Open-IM-SDK-Core updated: 2257ac8ee5...9d67999cec
@@ -39,6 +39,8 @@ func cleanUpFuncName(funcName string) string {
|
|||||||
}
|
}
|
||||||
return funcName[end+1:]
|
return funcName[end+1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get the intersection of two slices
|
||||||
func Intersect(slice1, slice2 []uint32) []uint32 {
|
func Intersect(slice1, slice2 []uint32) []uint32 {
|
||||||
m := make(map[uint32]bool)
|
m := make(map[uint32]bool)
|
||||||
n := make([]uint32, 0)
|
n := make([]uint32, 0)
|
||||||
@@ -53,6 +55,8 @@ func Intersect(slice1, slice2 []uint32) []uint32 {
|
|||||||
}
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get the diff of two slices
|
||||||
func Difference(slice1, slice2 []uint32) []uint32 {
|
func Difference(slice1, slice2 []uint32) []uint32 {
|
||||||
m := make(map[uint32]bool)
|
m := make(map[uint32]bool)
|
||||||
n := make([]uint32, 0)
|
n := make([]uint32, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user