|
|
@ -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)
|
|
|
|