Documentation ¶
Index ¶
- type AnySet
- type StringSet
- func (s StringSet) Difference(rhs StringSet) StringSet
- func (s StringSet) Exist(val string) bool
- func (s StringSet) Insert(val string)
- func (s StringSet) Intersection(rhs StringSet) StringSet
- func (s StringSet) Join(add StringSet) StringSet
- func (s StringSet) Remove(val string)
- func (s StringSet) Slice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnySet ¶
type AnySet struct {
// contains filtered or unexported fields
}
AnySet is a set stores interface{}
func (*AnySet) Difference ¶
Difference returns the difference of two sets
func (*AnySet) Intersection ¶
Intersection returns the intersection of two sets
type StringSet ¶
type StringSet map[string]struct{}
StringSet is a string set.
func (StringSet) Difference ¶
Difference returns the difference of two sets
func (StringSet) Intersection ¶
Intersection returns the intersection of two sets
Click to show internal directories.
Click to hide internal directories.