Documentation
¶
Index ¶
- Variables
- type StringSet
- func (s *StringSet) Add(str string) bool
- func (s *StringSet) All() []string
- func (s *StringSet) AllSorted() []string
- func (s *StringSet) Clear()
- func (s *StringSet) Difference(other *StringSet) *StringSet
- func (s *StringSet) Equal(other *StringSet) bool
- func (s *StringSet) Has(str string) bool
- func (s *StringSet) Intersection(other *StringSet) *StringSet
- func (s *StringSet) Len() int
- func (s *StringSet) Pop() (string, error)
- func (s *StringSet) Raw() map[string]struct{}
- func (s *StringSet) Remove(str string) bool
- func (s *StringSet) Union(other *StringSet) *StringSet
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSetIsEmpty = errors.New("set is empty")
)
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
func (*StringSet) Difference ¶
func (*StringSet) Intersection ¶
Click to show internal directories.
Click to hide internal directories.