Documentation ¶
Index ¶
- type Set
- func (s Set) Add(items ...interface{})
- func (s Set) AddSlice(slice interface{}, fn func(i int) interface{})
- func (s Set) Contains(item interface{}) bool
- func (s Set) Intersect(set Set)
- func (s Set) Len() int
- func (s Set) Remove(items ...interface{})
- func (s Set) RemoveSlice(slice interface{}, fn func(i int) string)
- func (s Set) Union(set Set)
- type StringSet
- func (s StringSet) Add(items ...string)
- func (s StringSet) AddSlice(slice interface{}, fn func(i int) string)
- func (s StringSet) Contains(item string) bool
- func (s StringSet) Intersect(set StringSet)
- func (s StringSet) Len() int
- func (s StringSet) Remove(items ...string)
- func (s StringSet) RemoveSlice(slice interface{}, fn func(i int) string)
- func (s StringSet) Slice() []string
- func (s StringSet) Union(set StringSet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
func NewStringSet ¶
func (StringSet) RemoveSlice ¶
Click to show internal directories.
Click to hide internal directories.