Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff[T comparable](old, new []T) (oldDel []T, newAdd []T)
Diff calculate the difference between two slices oldDel: item not exist in new slice newAdd: item not exist in old slice
func Intersect ¶
func Intersect[T comparable](slice1, slice2 []T) []T
Intersect calculate the intersection of two slices
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.