import "istio.io/istio/pilot/pkg/util/sets"
NewSet creates a Set from a list of values.
Contains returns whether the given item is in the set.
Delete removes items from the set.
Difference returns a set of objects that are not in s2 For example: s = {a1, a2, a3} s2 = {a1, a2, a4, a5} s.Difference(s2) = {a3} s2.Difference(s) = {a4, a5}
Equals checks whether the given set is equal to the current set.
Insert adds items to the set.
UnsortedList returns the slice with contents in random order.
Package sets is imported by 13 packages. Updated 2021-01-07. Refresh now. Tools for package owners.