Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2021 v1.0.0 May 31, 2021 Changes in this version + type IntSet struct + func NewIntSet(safe ...bool) *IntSet + func NewIntSetFrom(items []int, safe ...bool) *IntSet + func (set *IntSet) Add(item ...int) *IntSet + func (set *IntSet) Clear() *IntSet + func (set *IntSet) Complement(full *IntSet) (newSet *IntSet) + func (set *IntSet) Contains(item int) bool + func (set *IntSet) Diff(others ...*IntSet) (newSet *IntSet) + func (set *IntSet) Equal(other *IntSet) bool + func (set *IntSet) Intersect(others ...*IntSet) (newSet *IntSet) + func (set *IntSet) IsSubsetOf(other *IntSet) bool + func (set *IntSet) Iterator(f func(v int) bool) *IntSet + func (set *IntSet) Join(glue string) string + func (set *IntSet) LockFunc(f func(m map[int]struct{})) + func (set *IntSet) MarshalJSON() ([]byte, error) + func (set *IntSet) Merge(others ...*IntSet) *IntSet + func (set *IntSet) Pop() int + func (set *IntSet) Pops(size int) []int + func (set *IntSet) RLockFunc(f func(m map[int]struct{})) + func (set *IntSet) Remove(item int) *IntSet + func (set *IntSet) Size() int + func (set *IntSet) Slice() []int + func (set *IntSet) String() string + func (set *IntSet) Sum() (sum int) + func (set *IntSet) Union(others ...*IntSet) (newSet *IntSet) + type Set struct + func New(safe ...bool) *Set + func NewFrom(items interface{}, safe ...bool) *Set + func NewSet(safe ...bool) *Set + func (set *Set) Add(item ...interface{}) *Set + func (set *Set) Clear() *Set + func (set *Set) Complement(full *Set) (newSet *Set) + func (set *Set) Contains(item interface{}) bool + func (set *Set) Diff(others ...*Set) (newSet *Set) + func (set *Set) Equal(other *Set) bool + func (set *Set) Intersect(others ...*Set) (newSet *Set) + func (set *Set) IsSubsetOf(other *Set) bool + func (set *Set) Iterator(f func(v interface{}) bool) *Set + func (set *Set) Join(glue string) string + func (set *Set) LockFunc(f func(m map[interface{}]struct{})) + func (set *Set) MarshalJSON() ([]byte, error) + func (set *Set) Merge(others ...*Set) *Set + func (set *Set) Pop() interface{} + func (set *Set) Pops(size int) []interface{} + func (set *Set) RLockFunc(f func(m map[interface{}]struct{})) + func (set *Set) Remove(item interface{}) *Set + func (set *Set) Size() int + func (set *Set) Slice() []interface{} + func (set *Set) String() string + func (set *Set) Sum() (sum int) + func (set *Set) Union(others ...*Set) (newSet *Set) + type StrSet struct + func NewStrSet(safe ...bool) *StrSet + func NewStrSetFrom(items []string, safe ...bool) *StrSet + func (set *StrSet) Add(item ...string) *StrSet + func (set *StrSet) Clear() *StrSet + func (set *StrSet) Complement(full *StrSet) (newSet *StrSet) + func (set *StrSet) Contains(item string) bool + func (set *StrSet) Diff(others ...*StrSet) (newSet *StrSet) + func (set *StrSet) Equal(other *StrSet) bool + func (set *StrSet) Intersect(others ...*StrSet) (newSet *StrSet) + func (set *StrSet) IsSubsetOf(other *StrSet) bool + func (set *StrSet) Iterator(f func(v string) bool) *StrSet + func (set *StrSet) Join(glue string) string + func (set *StrSet) LockFunc(f func(m map[string]struct{})) + func (set *StrSet) MarshalJSON() ([]byte, error) + func (set *StrSet) Merge(others ...*StrSet) *StrSet + func (set *StrSet) Pop() string + func (set *StrSet) Pops(size int) []string + func (set *StrSet) RLockFunc(f func(m map[string]struct{})) + func (set *StrSet) Remove(item string) *StrSet + func (set *StrSet) Size() int + func (set *StrSet) Slice() []string + func (set *StrSet) String() string + func (set *StrSet) Sum() (sum int) + func (set *StrSet) Union(others ...*StrSet) (newSet *StrSet)