Documentation ¶
Index ¶
- type ByteSet
- func (s *ByteSet) Add(member byte) bool
- func (s *ByteSet) Card() int
- func (s *ByteSet) Contains(member byte) bool
- func (s *ByteSet) ContainsAny(members ...byte) bool
- func (s *ByteSet) Diff(sets ...*ByteSet) *ByteSet
- func (s *ByteSet) Equal(targetSet *ByteSet) bool
- func (s *ByteSet) In(targetSet *ByteSet) bool
- func (s *ByteSet) Inter(sets ...*ByteSet) *ByteSet
- func (s *ByteSet) Remove(member byte) bool
- func (s *ByteSet) ToList() []byte
- func (s *ByteSet) Union(sets ...*ByteSet) *ByteSet
- type Float32Set
- func (s *Float32Set) Add(member float32) bool
- func (s *Float32Set) Card() int
- func (s *Float32Set) Contains(member float32) bool
- func (s *Float32Set) ContainsAny(members ...float32) bool
- func (s *Float32Set) Diff(sets ...*Float32Set) *Float32Set
- func (s *Float32Set) Equal(targetSet *Float32Set) bool
- func (s *Float32Set) In(targetSet *Float32Set) bool
- func (s *Float32Set) Inter(sets ...*Float32Set) *Float32Set
- func (s *Float32Set) Remove(member float32) bool
- func (s *Float32Set) ToList() []float32
- func (s *Float32Set) Union(sets ...*Float32Set) *Float32Set
- type Float64Set
- func (s *Float64Set) Add(member float64) bool
- func (s *Float64Set) Card() int
- func (s *Float64Set) Contains(member float64) bool
- func (s *Float64Set) ContainsAny(members ...float64) bool
- func (s *Float64Set) Diff(sets ...*Float64Set) *Float64Set
- func (s *Float64Set) Equal(targetSet *Float64Set) bool
- func (s *Float64Set) In(targetSet *Float64Set) bool
- func (s *Float64Set) Inter(sets ...*Float64Set) *Float64Set
- func (s *Float64Set) Remove(member float64) bool
- func (s *Float64Set) ToList() []float64
- func (s *Float64Set) Union(sets ...*Float64Set) *Float64Set
- type Int16Set
- func (s *Int16Set) Add(member int16) bool
- func (s *Int16Set) Card() int
- func (s *Int16Set) Contains(member int16) bool
- func (s *Int16Set) ContainsAny(members ...int16) bool
- func (s *Int16Set) Diff(sets ...*Int16Set) *Int16Set
- func (s *Int16Set) Equal(targetSet *Int16Set) bool
- func (s *Int16Set) In(targetSet *Int16Set) bool
- func (s *Int16Set) Inter(sets ...*Int16Set) *Int16Set
- func (s *Int16Set) Remove(member int16) bool
- func (s *Int16Set) ToList() []int16
- func (s *Int16Set) Union(sets ...*Int16Set) *Int16Set
- type Int32Set
- func (s *Int32Set) Add(member int32) bool
- func (s *Int32Set) Card() int
- func (s *Int32Set) Contains(member int32) bool
- func (s *Int32Set) ContainsAny(members ...int32) bool
- func (s *Int32Set) Diff(sets ...*Int32Set) *Int32Set
- func (s *Int32Set) Equal(targetSet *Int32Set) bool
- func (s *Int32Set) In(targetSet *Int32Set) bool
- func (s *Int32Set) Inter(sets ...*Int32Set) *Int32Set
- func (s *Int32Set) Remove(member int32) bool
- func (s *Int32Set) ToList() []int32
- func (s *Int32Set) Union(sets ...*Int32Set) *Int32Set
- type Int64Set
- func (s *Int64Set) Add(member int64) bool
- func (s *Int64Set) Card() int
- func (s *Int64Set) Contains(member int64) bool
- func (s *Int64Set) ContainsAny(members ...int64) bool
- func (s *Int64Set) Diff(sets ...*Int64Set) *Int64Set
- func (s *Int64Set) Equal(targetSet *Int64Set) bool
- func (s *Int64Set) In(targetSet *Int64Set) bool
- func (s *Int64Set) Inter(sets ...*Int64Set) *Int64Set
- func (s *Int64Set) Remove(member int64) bool
- func (s *Int64Set) ToList() []int64
- func (s *Int64Set) Union(sets ...*Int64Set) *Int64Set
- type Int8Set
- func (s *Int8Set) Add(member int8) bool
- func (s *Int8Set) Card() int
- func (s *Int8Set) Contains(member int8) bool
- func (s *Int8Set) ContainsAny(members ...int8) bool
- func (s *Int8Set) Diff(sets ...*Int8Set) *Int8Set
- func (s *Int8Set) Equal(targetSet *Int8Set) bool
- func (s *Int8Set) In(targetSet *Int8Set) bool
- func (s *Int8Set) Inter(sets ...*Int8Set) *Int8Set
- func (s *Int8Set) Remove(member int8) bool
- func (s *Int8Set) ToList() []int8
- func (s *Int8Set) Union(sets ...*Int8Set) *Int8Set
- type IntSet
- func (s *IntSet) Add(member int) bool
- func (s *IntSet) Card() int
- func (s *IntSet) Contains(member int) bool
- func (s *IntSet) ContainsAny(members ...int) bool
- func (s *IntSet) Diff(sets ...*IntSet) *IntSet
- func (s *IntSet) Equal(targetSet *IntSet) bool
- func (s *IntSet) In(targetSet *IntSet) bool
- func (s *IntSet) Inter(sets ...*IntSet) *IntSet
- func (s *IntSet) Remove(member int) bool
- func (s *IntSet) ToList() []int
- func (s *IntSet) Union(sets ...*IntSet) *IntSet
- type Set
- func (s *Set) Add(member interface{}) bool
- func (s *Set) Card() int
- func (s *Set) Contains(member interface{}) bool
- func (s *Set) ContainsAny(members ...interface{}) bool
- func (s *Set) Diff(sets ...*Set) *Set
- func (s *Set) Equal(targetSet *Set) bool
- func (s *Set) In(targetSet *Set) bool
- func (s *Set) Inter(sets ...*Set) *Set
- func (s *Set) Remove(member interface{}) bool
- func (s *Set) ToList() []interface{}
- func (s *Set) Union(sets ...*Set) *Set
- type StringSet
- func (s *StringSet) Add(member string) bool
- func (s *StringSet) Card() int
- func (s *StringSet) Contains(member string) bool
- func (s *StringSet) ContainsAny(members ...string) bool
- func (s *StringSet) Diff(sets ...*StringSet) *StringSet
- func (s *StringSet) Equal(targetSet *StringSet) bool
- func (s *StringSet) In(targetSet *StringSet) bool
- func (s *StringSet) Inter(sets ...*StringSet) *StringSet
- func (s *StringSet) Remove(member string) bool
- func (s *StringSet) ToList() []string
- func (s *StringSet) Union(sets ...*StringSet) *StringSet
- type Uint16Set
- func (s *Uint16Set) Add(member uint16) bool
- func (s *Uint16Set) Card() int
- func (s *Uint16Set) Contains(member uint16) bool
- func (s *Uint16Set) ContainsAny(members ...uint16) bool
- func (s *Uint16Set) Diff(sets ...*Uint16Set) *Uint16Set
- func (s *Uint16Set) Equal(targetSet *Uint16Set) bool
- func (s *Uint16Set) In(targetSet *Uint16Set) bool
- func (s *Uint16Set) Inter(sets ...*Uint16Set) *Uint16Set
- func (s *Uint16Set) Remove(member uint16) bool
- func (s *Uint16Set) ToList() []uint16
- func (s *Uint16Set) Union(sets ...*Uint16Set) *Uint16Set
- type Uint32Set
- func (s *Uint32Set) Add(member uint32) bool
- func (s *Uint32Set) Card() int
- func (s *Uint32Set) Contains(member uint32) bool
- func (s *Uint32Set) ContainsAny(members ...uint32) bool
- func (s *Uint32Set) Diff(sets ...*Uint32Set) *Uint32Set
- func (s *Uint32Set) Equal(targetSet *Uint32Set) bool
- func (s *Uint32Set) In(targetSet *Uint32Set) bool
- func (s *Uint32Set) Inter(sets ...*Uint32Set) *Uint32Set
- func (s *Uint32Set) Remove(member uint32) bool
- func (s *Uint32Set) ToList() []uint32
- func (s *Uint32Set) Union(sets ...*Uint32Set) *Uint32Set
- type Uint64Set
- func (s *Uint64Set) Add(member uint64) bool
- func (s *Uint64Set) Card() int
- func (s *Uint64Set) Contains(member uint64) bool
- func (s *Uint64Set) ContainsAny(members ...uint64) bool
- func (s *Uint64Set) Diff(sets ...*Uint64Set) *Uint64Set
- func (s *Uint64Set) Equal(targetSet *Uint64Set) bool
- func (s *Uint64Set) In(targetSet *Uint64Set) bool
- func (s *Uint64Set) Inter(sets ...*Uint64Set) *Uint64Set
- func (s *Uint64Set) Remove(member uint64) bool
- func (s *Uint64Set) ToList() []uint64
- func (s *Uint64Set) Union(sets ...*Uint64Set) *Uint64Set
- type Uint8Set
- func (s *Uint8Set) Add(member uint8) bool
- func (s *Uint8Set) Card() int
- func (s *Uint8Set) Contains(member uint8) bool
- func (s *Uint8Set) ContainsAny(members ...uint8) bool
- func (s *Uint8Set) Diff(sets ...*Uint8Set) *Uint8Set
- func (s *Uint8Set) Equal(targetSet *Uint8Set) bool
- func (s *Uint8Set) In(targetSet *Uint8Set) bool
- func (s *Uint8Set) Inter(sets ...*Uint8Set) *Uint8Set
- func (s *Uint8Set) Remove(member uint8) bool
- func (s *Uint8Set) ToList() []uint8
- func (s *Uint8Set) Union(sets ...*Uint8Set) *Uint8Set
- type UintSet
- func (s *UintSet) Add(member uint) bool
- func (s *UintSet) Card() int
- func (s *UintSet) Contains(member uint) bool
- func (s *UintSet) ContainsAny(members ...uint) bool
- func (s *UintSet) Diff(sets ...*UintSet) *UintSet
- func (s *UintSet) Equal(targetSet *UintSet) bool
- func (s *UintSet) In(targetSet *UintSet) bool
- func (s *UintSet) Inter(sets ...*UintSet) *UintSet
- func (s *UintSet) Remove(member uint) bool
- func (s *UintSet) ToList() []uint
- func (s *UintSet) Union(sets ...*UintSet) *UintSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSet ¶
type ByteSet struct {
// contains filtered or unexported fields
}
ByteSet was the set structure for byte type
func NewByteSet ¶
NewByteSet would create a new byte set with members
func NewThreadSafeByteSet ¶
NewThreadSafeByteSet was thread safe set that allows concurrent access between the goroutines
func (*ByteSet) Add ¶
Add would add the member into the set return true is the member was not exists
func (*ByteSet) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*ByteSet) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*ByteSet) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*ByteSet) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*ByteSet) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Float32Set ¶
type Float32Set struct {
// contains filtered or unexported fields
}
Float32Set was the set structure for float32 type
func NewFloat32Set ¶
func NewFloat32Set(members ...float32) *Float32Set
NewFloat32Set would create a new float32 set with members
func NewThreadSafeFloat32Set ¶
func NewThreadSafeFloat32Set(members ...float32) *Float32Set
NewThreadSafeFloat32Set was thread safe set that allows concurrent access between the goroutines
func (*Float32Set) Add ¶
func (s *Float32Set) Add(member float32) bool
Add would add the member into the set return true is the member was not exists
func (*Float32Set) Card ¶
func (s *Float32Set) Card() int
Card returns the set cardinality (number of elements) of the set
func (*Float32Set) Contains ¶
func (s *Float32Set) Contains(member float32) bool
Contains was used to check whether the member was existed in set or not
func (*Float32Set) ContainsAny ¶
func (s *Float32Set) ContainsAny(members ...float32) bool
ContainsAny was used to check any members were existed in set
func (*Float32Set) Diff ¶
func (s *Float32Set) Diff(sets ...*Float32Set) *Float32Set
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Float32Set) Equal ¶
func (s *Float32Set) Equal(targetSet *Float32Set) bool
Equal was used to check whether the members are the same
func (*Float32Set) In ¶
func (s *Float32Set) In(targetSet *Float32Set) bool
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Float32Set) Inter ¶
func (s *Float32Set) Inter(sets ...*Float32Set) *Float32Set
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Float32Set) Remove ¶
func (s *Float32Set) Remove(member float32) bool
Remove would delete the member for the set if exists return true when the member was existed
func (*Float32Set) ToList ¶
func (s *Float32Set) ToList() []float32
ToList would return the list of set members the undetermined order, since we use the map iterator that would random iter members. Please sort the list yourself if the fixed order was expected.
func (*Float32Set) Union ¶
func (s *Float32Set) Union(sets ...*Float32Set) *Float32Set
Union returns the members of the set resulting from the union of all the given sets
type Float64Set ¶
type Float64Set struct {
// contains filtered or unexported fields
}
Float64Set was the set structure for float64 type
func NewFloat64Set ¶
func NewFloat64Set(members ...float64) *Float64Set
NewFloat64Set would create a new float64 set with members
func NewThreadSafeFloat64Set ¶
func NewThreadSafeFloat64Set(members ...float64) *Float64Set
NewThreadSafeFloat64Set was thread safe set that allows concurrent access between the goroutines
func (*Float64Set) Add ¶
func (s *Float64Set) Add(member float64) bool
Add would add the member into the set return true is the member was not exists
func (*Float64Set) Card ¶
func (s *Float64Set) Card() int
Card returns the set cardinality (number of elements) of the set
func (*Float64Set) Contains ¶
func (s *Float64Set) Contains(member float64) bool
Contains was used to check whether the member was existed in set or not
func (*Float64Set) ContainsAny ¶
func (s *Float64Set) ContainsAny(members ...float64) bool
ContainsAny was used to check any members were existed in set
func (*Float64Set) Diff ¶
func (s *Float64Set) Diff(sets ...*Float64Set) *Float64Set
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Float64Set) Equal ¶
func (s *Float64Set) Equal(targetSet *Float64Set) bool
Equal was used to check whether the members are the same
func (*Float64Set) In ¶
func (s *Float64Set) In(targetSet *Float64Set) bool
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Float64Set) Inter ¶
func (s *Float64Set) Inter(sets ...*Float64Set) *Float64Set
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Float64Set) Remove ¶
func (s *Float64Set) Remove(member float64) bool
Remove would delete the member for the set if exists return true when the member was existed
func (*Float64Set) ToList ¶
func (s *Float64Set) ToList() []float64
ToList would return the list of set members the undetermined order, since we use the map iterator that would random iter members. Please sort the list yourself if the fixed order was expected.
func (*Float64Set) Union ¶
func (s *Float64Set) Union(sets ...*Float64Set) *Float64Set
Union returns the members of the set resulting from the union of all the given sets
type Int16Set ¶
type Int16Set struct {
// contains filtered or unexported fields
}
Int16Set was the set structure for int16 type
func NewInt16Set ¶
NewInt16Set would create a new int16 set with members
func NewThreadSafeInt16Set ¶
NewThreadSafeInt16Set was thread safe set that allows concurrent access between the goroutines
func (*Int16Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Int16Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Int16Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Int16Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Int16Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Int16Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Int32Set ¶
type Int32Set struct {
// contains filtered or unexported fields
}
Int32Set was the set structure for int32 type
func NewInt32Set ¶
NewInt32Set would create a new int32 set with members
func NewThreadSafeInt32Set ¶
NewThreadSafeInt32Set was thread safe set that allows concurrent access between the goroutines
func (*Int32Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Int32Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Int32Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Int32Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Int32Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Int32Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Int64Set ¶
type Int64Set struct {
// contains filtered or unexported fields
}
Int64Set was the set structure for int64 type
func NewInt64Set ¶
NewInt64Set would create a new int64 set with members
func NewThreadSafeInt64Set ¶
NewThreadSafeInt64Set was thread safe set that allows concurrent access between the goroutines
func (*Int64Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Int64Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Int64Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Int64Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Int64Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Int64Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Int8Set ¶
type Int8Set struct {
// contains filtered or unexported fields
}
Int8Set was the set structure for int8 type
func NewInt8Set ¶
NewInt8Set would create a new int8 set with members
func NewThreadSafeInt8Set ¶
NewThreadSafeInt8Set was thread safe set that allows concurrent access between the goroutines
func (*Int8Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Int8Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Int8Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Int8Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Int8Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Int8Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
IntSet was the set structure for int type
func NewThreadSafeIntSet ¶
NewThreadSafeIntSet was thread safe set that allows concurrent access between the goroutines
func (*IntSet) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*IntSet) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*IntSet) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*IntSet) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*IntSet) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set was the set structure for interface{} type
func NewSet ¶
func NewSet(members ...interface{}) *Set
NewSet would create a new interface{} set with members
func NewThreadSafeSet ¶
func NewThreadSafeSet(members ...interface{}) *Set
NewThreadSafeSet was thread safe set that allows concurrent access between the goroutines
func (*Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet was the set structure for string type
func NewStringSet ¶
NewStringSet would create a new string set with members
func NewThreadSafeStringSet ¶
NewThreadSafeStringSet was thread safe set that allows concurrent access between the goroutines
func (*StringSet) Add ¶
Add would add the member into the set return true is the member was not exists
func (*StringSet) Contains ¶
Contains was used to check whether the member was existed in set or not
func (*StringSet) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*StringSet) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*StringSet) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*StringSet) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*StringSet) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Uint16Set ¶
type Uint16Set struct {
// contains filtered or unexported fields
}
Uint16Set was the set structure for uint16 type
func NewThreadSafeUint16Set ¶
NewThreadSafeUint16Set was thread safe set that allows concurrent access between the goroutines
func NewUint16Set ¶
NewUint16Set would create a new uint16 set with members
func (*Uint16Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Uint16Set) Contains ¶
Contains was used to check whether the member was existed in set or not
func (*Uint16Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Uint16Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Uint16Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Uint16Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Uint16Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Uint32Set ¶
type Uint32Set struct {
// contains filtered or unexported fields
}
Uint32Set was the set structure for uint32 type
func NewThreadSafeUint32Set ¶
NewThreadSafeUint32Set was thread safe set that allows concurrent access between the goroutines
func NewUint32Set ¶
NewUint32Set would create a new uint32 set with members
func (*Uint32Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Uint32Set) Contains ¶
Contains was used to check whether the member was existed in set or not
func (*Uint32Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Uint32Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Uint32Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Uint32Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Uint32Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Uint64Set ¶
type Uint64Set struct {
// contains filtered or unexported fields
}
Uint64Set was the set structure for uint64 type
func NewThreadSafeUint64Set ¶
NewThreadSafeUint64Set was thread safe set that allows concurrent access between the goroutines
func NewUint64Set ¶
NewUint64Set would create a new uint64 set with members
func (*Uint64Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Uint64Set) Contains ¶
Contains was used to check whether the member was existed in set or not
func (*Uint64Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Uint64Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Uint64Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Uint64Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Uint64Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type Uint8Set ¶
type Uint8Set struct {
// contains filtered or unexported fields
}
Uint8Set was the set structure for uint8 type
func NewThreadSafeUint8Set ¶
NewThreadSafeUint8Set was thread safe set that allows concurrent access between the goroutines
func NewUint8Set ¶
NewUint8Set would create a new uint8 set with members
func (*Uint8Set) Add ¶
Add would add the member into the set return true is the member was not exists
func (*Uint8Set) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*Uint8Set) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*Uint8Set) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*Uint8Set) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*Uint8Set) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed
type UintSet ¶
type UintSet struct {
// contains filtered or unexported fields
}
UintSet was the set structure for uint type
func NewThreadSafeUintSet ¶
NewThreadSafeUintSet was thread safe set that allows concurrent access between the goroutines
func NewUintSet ¶
NewUintSet would create a new uint set with members
func (*UintSet) Add ¶
Add would add the member into the set return true is the member was not exists
func (*UintSet) ContainsAny ¶
ContainsAny was used to check any members were existed in set
func (*UintSet) Diff ¶
Diff returns the members of the set resulting from the difference between the first set and all the successive sets
func (*UintSet) In ¶
In was used to check if all the set members was contains by targetSet, empty set would be always in other set.
func (*UintSet) Inter ¶
Inter returns the members of the set resulting from the intersection of all the given sets
func (*UintSet) Remove ¶
Remove would delete the member for the set if exists return true when the member was existed