Documentation
¶
Index ¶
- type StringSet
- func (s StringSet) Add(itm string)
- func (s StringSet) Contains(itm string) bool
- func (s StringSet) Equals(other StringSet) bool
- func (s StringSet) Intersection(other StringSet) StringSet
- func (s StringSet) Remove(itm string)
- func (s StringSet) Union(other StringSet) StringSet
- func (s StringSet) Values() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
A StringSet is a set of strings
func FromValues ¶
FromValues initializes a string set with values.
func (StringSet) Intersection ¶
Intersection updates the current set to reflect the intersection between sets.
Click to show internal directories.
Click to hide internal directories.