Documentation
¶
Overview ¶
Package sets provides a simple implementation of a set data structure.
Index ¶
- type Empty
- type String
- type UUID
- func (s UUID) Delete(items ...uuid.UUID)
- func (s UUID) Has(item uuid.UUID) bool
- func (s UUID) HasAll(items ...uuid.UUID) bool
- func (s UUID) HasAny(items ...uuid.UUID) bool
- func (s UUID) Insert(items ...uuid.UUID)
- func (s UUID) Intersection(other UUID) UUID
- func (s UUID) Len() int
- func (s UUID) List() []uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
String is a set of strings.
func StringKeySet ¶
StringKeySet creates a String set from the keys of the given map.
func (String) Intersection ¶
Intersection returns a new set that is the intersection of the two sets.
type UUID ¶ added in v0.1.40
UUID is a set of uuid.UUID values.
func (UUID) Intersection ¶ added in v0.1.40
Intersection returns a new set that is the intersection of the two sets.
Click to show internal directories.
Click to hide internal directories.