Documentation ¶
Overview ¶
Package stringset: Operations on a set of strings
Index ¶
- type StringSet
- func (ss *StringSet) Add(elements ...string) *StringSet
- func (ss *StringSet) AddSet(ss1 *StringSet) *StringSet
- func (ss *StringSet) Clone() *StringSet
- func (ss *StringSet) Contain(s string) bool
- func (ss *StringSet) Elements() []string
- func (ss *StringSet) ElementsSorted() []string
- func (ss *StringSet) Equal(ss1 *StringSet) bool
- func (ss *StringSet) Len() int
- func (ss *StringSet) Remove(element string) *StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet implements a set of strings
func (*StringSet) AddSet ¶ added in v0.5.1
AddSet adds the elements of ss1 to ss and returns ss to allow chained commands
func (*StringSet) ElementsSorted ¶ added in v1.2.0
ElementsSorted returns a slice containing the elements of ss sorted lexicographically
Click to show internal directories.
Click to hide internal directories.