Documentation ¶
Index ¶
- func GetEnv(env string, defaultValue string) string
- type StringSet
- func (set StringSet) Contains(item string) bool
- func (set StringSet) Difference(other StringSet) StringSet
- func (set StringSet) Equals(other StringSet) bool
- func (set StringSet) Insert(item string)
- func (set StringSet) Intersetion(other StringSet) StringSet
- func (set StringSet) Len() int
- func (set StringSet) Remove(item string)
- func (set StringSet) ToSlice() (items []string)
- func (set StringSet) Union(other StringSet) StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet implements Set interface
func NewStringSet ¶
NewStringSet returns set initialized with items
func (StringSet) Difference ¶
Difference returns elements present in set and not present in other
func (StringSet) Intersetion ¶
Intersetion returns common elements of set and other
Click to show internal directories.
Click to hide internal directories.