Documentation ¶
Index ¶
- func Contains(list []string, item string) bool
- func Equal(expect, actual []string) bool
- type Set
- func (s Set) Add(str string) Set
- func (s Set) AddSet(addSet Set) Set
- func (s Set) AddSlice(slice []string) Set
- func (s Set) Contains(val string) bool
- func (s Set) Intersect(s2 Set) Set
- func (s Set) IsEmpty() bool
- func (s Set) Remove(str string)
- func (s Set) RemoveSet(removeSet Set) Set
- func (s Set) RemoveSlice(slice []string) Set
- func (s Set) String() string
- func (s Set) ToSlice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Set ¶
Set is a representation of a set of strings. If you have a []string that you want to do a lot of set operations on, prefer using this type. If you only have a one-off usage, use SliceContains.
func (Set) RemoveSlice ¶
RemoveSlice modifies s in-place to remove all the elements of slice.
Click to show internal directories.
Click to hide internal directories.