Documentation
¶
Index ¶
- type Int
- func (set Int) Array() (list []int64)
- func (set Int) Copy() Int
- func (set Int) Del(values ...int64)
- func (set Int) Difference(other Int) Int
- func (set Int) Intersect(other Int) Int
- func (set Int) Merge(other Int)
- func (set Int) Put(values ...int64)
- func (set Int) String() string
- func (set Int) Test(values ...int64) bool
- func (set Int) Union(other Int) Int
- type String
- func (set String) Array() (list []string)
- func (set String) Copy() String
- func (set String) Del(values ...string)
- func (set String) Difference(other String) String
- func (set String) Intersect(other String) String
- func (set String) Merge(other String)
- func (set String) Put(values ...string)
- func (set String) String() string
- func (set String) Test(values ...string) bool
- func (set String) Union(other String) String
- type Uint
- func (set Uint) Array() (list []uint64)
- func (set Uint) Copy() Uint
- func (set Uint) Del(values ...uint64)
- func (set Uint) Difference(other Uint) Uint
- func (set Uint) Intersect(other Uint) Uint
- func (set Uint) Merge(other Uint)
- func (set Uint) Put(values ...uint64)
- func (set Uint) String() string
- func (set Uint) Test(values ...uint64) bool
- func (set Uint) Union(other Uint) Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int ¶
type Int map[int64]struct{}
Int represents a set of int64s. Must first be initialized using the NewInt function before being used.
func (Int) Del ¶
Del removes the given int64 from the set and is a noop if the int64 is not already in the set.
func (Int) Difference ¶
Difference returns a set consisting of all the values in this set that are not present in the other set.
func (Int) Put ¶
Put adds the given int64 to the set and is a noop if the int64 is already in the set.
type String ¶
type String map[string]struct{}
String represents a set of strings. Must first be initialized using the NewString function before being used.
func (String) Del ¶
Del removes the given string from the set and is a noop if the string is not already in the set.
func (String) Difference ¶
Difference returns a set consisting of all the values in this set that are not present in the other set.
func (String) Put ¶
Put adds the given string to the set and is a noop if the string is already in the set.
type Uint ¶
type Uint map[uint64]struct{}
Uint represents a set of uint64s. Must first be initialized using the NewUint function before being used.
func (Uint) Del ¶
Del removes the given uint64 from the set and is a noop if the uint64 is not already in the set.
func (Uint) Difference ¶
Difference returns a set consisting of all the values in this set that are not present in the other set.
func (Uint) Put ¶
Put adds the given uint64 to the set and is a noop if the uint64 is already in the set.