mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
note
This commit is contained in:
parent
a16025ca95
commit
2a0f8f5ce3
@ -1 +1 @@
|
||||
Subproject commit 2257ac8ee528fb1e0038f85e34c8770fbe4758e3
|
||||
Subproject commit 9d67999cec3e4a9792c33a95e5514a945df54052
|
@ -39,6 +39,8 @@ func cleanUpFuncName(funcName string) string {
|
||||
}
|
||||
return funcName[end+1:]
|
||||
}
|
||||
|
||||
//Get the intersection of two slices
|
||||
func Intersect(slice1, slice2 []uint32) []uint32 {
|
||||
m := make(map[uint32]bool)
|
||||
n := make([]uint32, 0)
|
||||
@ -53,6 +55,8 @@ func Intersect(slice1, slice2 []uint32) []uint32 {
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
//Get the diff of two slices
|
||||
func Difference(slice1, slice2 []uint32) []uint32 {
|
||||
m := make(map[uint32]bool)
|
||||
n := make([]uint32, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user