Documentation
¶
Index ¶
- type Int64Set
- func (a *Int64Set) Add(elements ...int64) *Int64Set
- func (a *Int64Set) AddSet(b *Int64Set) *Int64Set
- func (a *Int64Set) Contains(elements ...int64) bool
- func (a *Int64Set) ContainsSet(b *Int64Set) bool
- func (a *Int64Set) InterSection(b *Int64Set) *Int64Set
- func (a *Int64Set) Remove(elements ...int64) *Int64Set
- func (a *Int64Set) RemoveSet(b *Int64Set) *Int64Set
- func (a *Int64Set) Size() int
- func (a *Int64Set) ToSortedSlice() []int64
- type Int64Slice
- type IntSet
- func (a *IntSet) Add(elements ...int) *IntSet
- func (a *IntSet) AddSet(b *IntSet) *IntSet
- func (a *IntSet) Contains(elements ...int) bool
- func (a *IntSet) ContainsSet(b *IntSet) bool
- func (a *IntSet) InterSection(b *IntSet) *IntSet
- func (a *IntSet) Remove(elements ...int) *IntSet
- func (a *IntSet) RemoveSet(b *IntSet) *IntSet
- func (a *IntSet) Size() int
- func (a *IntSet) ToSortedSlice() []int
- type InterfaceSet
- func (a *InterfaceSet) Add(elements ...interface{}) *InterfaceSet
- func (a *InterfaceSet) AddSet(b *InterfaceSet) *InterfaceSet
- func (a *InterfaceSet) Contains(elements ...interface{}) bool
- func (a *InterfaceSet) ContainsSet(b *InterfaceSet) bool
- func (a *InterfaceSet) InterSection(b *InterfaceSet) *InterfaceSet
- func (a *InterfaceSet) Remove(elements ...interface{}) *InterfaceSet
- func (a *InterfaceSet) RemoveSet(b *InterfaceSet) *InterfaceSet
- func (a *InterfaceSet) Size() int
- type StringSet
- func (a *StringSet) Add(elements ...string) *StringSet
- func (a *StringSet) AddSet(b *StringSet) *StringSet
- func (a *StringSet) Contains(elements ...string) bool
- func (a *StringSet) ContainsSet(b *StringSet) bool
- func (a *StringSet) InterSection(b *StringSet) *StringSet
- func (a *StringSet) Remove(elements ...string) *StringSet
- func (a *StringSet) RemoveSet(b *StringSet) *StringSet
- func (a *StringSet) Size() int
- func (a *StringSet) ToSortedSlice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int64Set ¶
type Int64Set struct {
Map map[int64]struct{}
}
func NewInt64Set ¶
func (*Int64Set) ContainsSet ¶
func (*Int64Set) InterSection ¶
func (*Int64Set) ToSortedSlice ¶
type Int64Slice ¶
type Int64Slice []int64
func (Int64Slice) Len ¶
func (p Int64Slice) Len() int
func (Int64Slice) Less ¶
func (p Int64Slice) Less(i, j int) bool
func (Int64Slice) Swap ¶
func (p Int64Slice) Swap(i, j int)
type IntSet ¶
type IntSet struct {
Map map[int]struct{}
}
func (*IntSet) ContainsSet ¶
func (*IntSet) InterSection ¶
func (*IntSet) ToSortedSlice ¶
type InterfaceSet ¶
type InterfaceSet struct {
Map map[interface{}]struct{}
}
func NewInterfaceSet ¶
func NewInterfaceSet(values ...interface{}) *InterfaceSet
func (*InterfaceSet) Add ¶
func (a *InterfaceSet) Add(elements ...interface{}) *InterfaceSet
func (*InterfaceSet) AddSet ¶
func (a *InterfaceSet) AddSet(b *InterfaceSet) *InterfaceSet
func (*InterfaceSet) Contains ¶
func (a *InterfaceSet) Contains(elements ...interface{}) bool
func (*InterfaceSet) ContainsSet ¶
func (a *InterfaceSet) ContainsSet(b *InterfaceSet) bool
func (*InterfaceSet) InterSection ¶
func (a *InterfaceSet) InterSection(b *InterfaceSet) *InterfaceSet
func (*InterfaceSet) Remove ¶
func (a *InterfaceSet) Remove(elements ...interface{}) *InterfaceSet
func (*InterfaceSet) RemoveSet ¶
func (a *InterfaceSet) RemoveSet(b *InterfaceSet) *InterfaceSet
func (*InterfaceSet) Size ¶
func (a *InterfaceSet) Size() int
type StringSet ¶
type StringSet struct {
Map map[string]struct{}
}
func NewStringSet ¶
func (*StringSet) ContainsSet ¶
func (*StringSet) InterSection ¶
func (*StringSet) ToSortedSlice ¶
Click to show internal directories.
Click to hide internal directories.