Documentation ¶
Index ¶
- type Float32Set
- func (set *Float32Set) Add(items ...float32)
- func (set *Float32Set) Clear()
- func (set *Float32Set) Contains(items ...float32) bool
- func (set *Float32Set) Empty() bool
- func (set *Float32Set) FromJSON(data []byte) error
- func (set *Float32Set) Remove(items ...float32)
- func (set *Float32Set) Size() int
- func (set *Float32Set) String() string
- func (set *Float32Set) ToJSON() ([]byte, error)
- func (set *Float32Set) Values() []float32
- type Float64Set
- func (set *Float64Set) Add(items ...float64)
- func (set *Float64Set) Clear()
- func (set *Float64Set) Contains(items ...float64) bool
- func (set *Float64Set) Empty() bool
- func (set *Float64Set) FromJSON(data []byte) error
- func (set *Float64Set) Remove(items ...float64)
- func (set *Float64Set) Size() int
- func (set *Float64Set) String() string
- func (set *Float64Set) ToJSON() ([]byte, error)
- func (set *Float64Set) Values() []float64
- type Int32Set
- func (set *Int32Set) Add(items ...int32)
- func (set *Int32Set) Clear()
- func (set *Int32Set) Contains(items ...int32) bool
- func (set *Int32Set) Empty() bool
- func (set *Int32Set) FromJSON(data []byte) error
- func (set *Int32Set) Remove(items ...int32)
- func (set *Int32Set) Size() int
- func (set *Int32Set) String() string
- func (set *Int32Set) ToJSON() ([]byte, error)
- func (set *Int32Set) Values() []int32
- type Int64Set
- func (set *Int64Set) Add(items ...int64)
- func (set *Int64Set) Clear()
- func (set *Int64Set) Contains(items ...int64) bool
- func (set *Int64Set) Empty() bool
- func (set *Int64Set) FromJSON(data []byte) error
- func (set *Int64Set) Remove(items ...int64)
- func (set *Int64Set) Size() int
- func (set *Int64Set) String() string
- func (set *Int64Set) ToJSON() ([]byte, error)
- func (set *Int64Set) Values() []int64
- type IntSet
- func (set *IntSet) Add(items ...int)
- func (set *IntSet) Clear()
- func (set *IntSet) Contains(items ...int) bool
- func (set *IntSet) Empty() bool
- func (set *IntSet) FromJSON(data []byte) error
- func (set *IntSet) Remove(items ...int)
- func (set *IntSet) Size() int
- func (set *IntSet) String() string
- func (set *IntSet) ToJSON() ([]byte, error)
- func (set *IntSet) Values() []int
- type StringSet
- func (set *StringSet) Add(items ...string)
- func (set *StringSet) Clear()
- func (set *StringSet) Contains(items ...string) bool
- func (set *StringSet) Empty() bool
- func (set *StringSet) FromJSON(data []byte) error
- func (set *StringSet) Remove(items ...string)
- func (set *StringSet) Size() int
- func (set *StringSet) String() string
- func (set *StringSet) ToJSON() ([]byte, error)
- func (set *StringSet) Values() []string
- type Uint32Set
- func (set *Uint32Set) Add(items ...uint32)
- func (set *Uint32Set) Clear()
- func (set *Uint32Set) Contains(items ...uint32) bool
- func (set *Uint32Set) Empty() bool
- func (set *Uint32Set) FromJSON(data []byte) error
- func (set *Uint32Set) Remove(items ...uint32)
- func (set *Uint32Set) Size() int
- func (set *Uint32Set) String() string
- func (set *Uint32Set) ToJSON() ([]byte, error)
- func (set *Uint32Set) Values() []uint32
- type Uint64Set
- func (set *Uint64Set) Add(items ...uint64)
- func (set *Uint64Set) Clear()
- func (set *Uint64Set) Contains(items ...uint64) bool
- func (set *Uint64Set) Empty() bool
- func (set *Uint64Set) FromJSON(data []byte) error
- func (set *Uint64Set) Remove(items ...uint64)
- func (set *Uint64Set) Size() int
- func (set *Uint64Set) String() string
- func (set *Uint64Set) ToJSON() ([]byte, error)
- func (set *Uint64Set) Values() []uint64
- type UintSet
- func (set *UintSet) Add(items ...uint)
- func (set *UintSet) Clear()
- func (set *UintSet) Contains(items ...uint) bool
- func (set *UintSet) Empty() bool
- func (set *UintSet) FromJSON(data []byte) error
- func (set *UintSet) Remove(items ...uint)
- func (set *UintSet) Size() int
- func (set *UintSet) String() string
- func (set *UintSet) ToJSON() ([]byte, error)
- func (set *UintSet) Values() []uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float32Set ¶
type Float32Set struct {
// contains filtered or unexported fields
}
Float32Set holds elements in go's native map
func NewFloat32Set ¶
func NewFloat32Set(values ...float32) *Float32Set
NewFloat32Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Float32Set) Add ¶
func (set *Float32Set) Add(items ...float32)
Add adds the items (one or more) to the set.
func (*Float32Set) Contains ¶
func (set *Float32Set) Contains(items ...float32) bool
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
func (*Float32Set) Empty ¶
func (set *Float32Set) Empty() bool
Empty returns true if set does not contain any elements.
func (*Float32Set) FromJSON ¶
func (set *Float32Set) FromJSON(data []byte) error
FromJSON populates the set from the input JSON representation.
func (*Float32Set) Remove ¶
func (set *Float32Set) Remove(items ...float32)
Remove removes the items (one or more) from the set.
func (*Float32Set) Size ¶
func (set *Float32Set) Size() int
Size returns number of elements within the set.
func (*Float32Set) String ¶
func (set *Float32Set) String() string
String returns a string representation of container
func (*Float32Set) ToJSON ¶
func (set *Float32Set) ToJSON() ([]byte, error)
ToJSON outputs the JSON representation of the set.
func (*Float32Set) Values ¶
func (set *Float32Set) Values() []float32
Values returns all items in the set.
type Float64Set ¶
type Float64Set struct {
// contains filtered or unexported fields
}
Float64Set holds elements in go's native map
func NewFloat64Set ¶
func NewFloat64Set(values ...float64) *Float64Set
NewFloat64Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Float64Set) Add ¶
func (set *Float64Set) Add(items ...float64)
Add adds the items (one or more) to the set.
func (*Float64Set) Contains ¶
func (set *Float64Set) Contains(items ...float64) bool
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
func (*Float64Set) Empty ¶
func (set *Float64Set) Empty() bool
Empty returns true if set does not contain any elements.
func (*Float64Set) FromJSON ¶
func (set *Float64Set) FromJSON(data []byte) error
FromJSON populates the set from the input JSON representation.
func (*Float64Set) Remove ¶
func (set *Float64Set) Remove(items ...float64)
Remove removes the items (one or more) from the set.
func (*Float64Set) Size ¶
func (set *Float64Set) Size() int
Size returns number of elements within the set.
func (*Float64Set) String ¶
func (set *Float64Set) String() string
String returns a string representation of container
func (*Float64Set) ToJSON ¶
func (set *Float64Set) ToJSON() ([]byte, error)
ToJSON outputs the JSON representation of the set.
func (*Float64Set) Values ¶
func (set *Float64Set) Values() []float64
Values returns all items in the set.
type Int32Set ¶
type Int32Set struct {
// contains filtered or unexported fields
}
Int32Set holds elements in go's native map
func NewInt32Set ¶
NewInt32Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Int32Set) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type Int64Set ¶
type Int64Set struct {
// contains filtered or unexported fields
}
Int64Set holds elements in go's native map
func NewInt64Set ¶
NewInt64Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Int64Set) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
IntSet holds elements in go's native map
func NewIntSet ¶
NewIntSet instantiates a new empty set and adds the passed values, if any, to the set
func (*IntSet) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet holds elements in go's native map
func NewStringSet ¶
NewStringSet instantiates a new empty set and adds the passed values, if any, to the set
func (*StringSet) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type Uint32Set ¶
type Uint32Set struct {
// contains filtered or unexported fields
}
Uint32Set holds elements in go's native map
func NewUint32Set ¶
NewUint32Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Uint32Set) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type Uint64Set ¶
type Uint64Set struct {
// contains filtered or unexported fields
}
Uint64Set holds elements in go's native map
func NewUint64Set ¶
NewUint64Set instantiates a new empty set and adds the passed values, if any, to the set
func (*Uint64Set) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.
type UintSet ¶
type UintSet struct {
// contains filtered or unexported fields
}
UintSet holds elements in go's native map
func NewUintSet ¶
NewUintSet instantiates a new empty set and adds the passed values, if any, to the set
func (*UintSet) Contains ¶
Contains check if items (one or more) are present in the set. All items have to be present in the set for the method to return true. Returns true if no arguments are passed at all, i.e. set is always superset of empty set.