Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Add ¶
Add adds a selector to the set. It reports whether the selector was added, meaning it reports false iff the set already contained that selector.
Add ensures that the set is sorted.
func (*Set) ContainsAny ¶
ContainsAny reports whether the set contains any of the selectors in other.
It compares in linear time O(N) where N is the number of selectors in the larger set. It is faster than calling Contains for each selector in other.
Click to show internal directories.
Click to hide internal directories.