Documentation ¶
Overview ¶
Package slicer contains utility classes for handling slices
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices ¶
Package slicer contains utility classes for handling slices
Index ¶
- type BoolSlicer
- func (s *BoolSlicer) Add(value bool, additional ...bool)
- func (s *BoolSlicer) AddSlice(value []bool)
- func (s *BoolSlicer) AddSlicer(value *BoolSlicer)
- func (s *BoolSlicer) AddUnique(value bool, additional ...bool)
- func (s *BoolSlicer) AsSlice() []bool
- func (s *BoolSlicer) Clear()
- func (s *BoolSlicer) Contains(matcher bool) bool
- func (s *BoolSlicer) Deduplicate()
- func (s *BoolSlicer) Each(fn func(bool))
- func (s *BoolSlicer) Filter(fn func(bool) bool) *BoolSlicer
- func (s *BoolSlicer) Join(separator string) string
- func (s *BoolSlicer) Length() int
- type Float32Slicer
- func (s *Float32Slicer) Add(value float32, additional ...float32)
- func (s *Float32Slicer) AddSlice(value []float32)
- func (s *Float32Slicer) AddSlicer(value *Float32Slicer)
- func (s *Float32Slicer) AddUnique(value float32, additional ...float32)
- func (s *Float32Slicer) AsSlice() []float32
- func (s *Float32Slicer) Clear()
- func (s *Float32Slicer) Contains(matcher float32) bool
- func (s *Float32Slicer) Deduplicate()
- func (s *Float32Slicer) Each(fn func(float32))
- func (s *Float32Slicer) Filter(fn func(float32) bool) *Float32Slicer
- func (s *Float32Slicer) Join(separator string) string
- func (s *Float32Slicer) Length() int
- func (s *Float32Slicer) Sort()
- type Float64Slicer
- func (s *Float64Slicer) Add(value float64, additional ...float64)
- func (s *Float64Slicer) AddSlice(value []float64)
- func (s *Float64Slicer) AddSlicer(value *Float64Slicer)
- func (s *Float64Slicer) AddUnique(value float64, additional ...float64)
- func (s *Float64Slicer) AsSlice() []float64
- func (s *Float64Slicer) Clear()
- func (s *Float64Slicer) Contains(matcher float64) bool
- func (s *Float64Slicer) Deduplicate()
- func (s *Float64Slicer) Each(fn func(float64))
- func (s *Float64Slicer) Filter(fn func(float64) bool) *Float64Slicer
- func (s *Float64Slicer) Join(separator string) string
- func (s *Float64Slicer) Length() int
- func (s *Float64Slicer) Sort()
- type Int16Slicer
- func (s *Int16Slicer) Add(value int16, additional ...int16)
- func (s *Int16Slicer) AddSlice(value []int16)
- func (s *Int16Slicer) AddSlicer(value *Int16Slicer)
- func (s *Int16Slicer) AddUnique(value int16, additional ...int16)
- func (s *Int16Slicer) AsSlice() []int16
- func (s *Int16Slicer) Clear()
- func (s *Int16Slicer) Contains(matcher int16) bool
- func (s *Int16Slicer) Deduplicate()
- func (s *Int16Slicer) Each(fn func(int16))
- func (s *Int16Slicer) Filter(fn func(int16) bool) *Int16Slicer
- func (s *Int16Slicer) Join(separator string) string
- func (s *Int16Slicer) Length() int
- func (s *Int16Slicer) Sort()
- type Int32Slicer
- func (s *Int32Slicer) Add(value int32, additional ...int32)
- func (s *Int32Slicer) AddSlice(value []int32)
- func (s *Int32Slicer) AddSlicer(value *Int32Slicer)
- func (s *Int32Slicer) AddUnique(value int32, additional ...int32)
- func (s *Int32Slicer) AsSlice() []int32
- func (s *Int32Slicer) Clear()
- func (s *Int32Slicer) Contains(matcher int32) bool
- func (s *Int32Slicer) Deduplicate()
- func (s *Int32Slicer) Each(fn func(int32))
- func (s *Int32Slicer) Filter(fn func(int32) bool) *Int32Slicer
- func (s *Int32Slicer) Join(separator string) string
- func (s *Int32Slicer) Length() int
- func (s *Int32Slicer) Sort()
- type Int64Slicer
- func (s *Int64Slicer) Add(value int64, additional ...int64)
- func (s *Int64Slicer) AddSlice(value []int64)
- func (s *Int64Slicer) AddSlicer(value *Int64Slicer)
- func (s *Int64Slicer) AddUnique(value int64, additional ...int64)
- func (s *Int64Slicer) AsSlice() []int64
- func (s *Int64Slicer) Clear()
- func (s *Int64Slicer) Contains(matcher int64) bool
- func (s *Int64Slicer) Deduplicate()
- func (s *Int64Slicer) Each(fn func(int64))
- func (s *Int64Slicer) Filter(fn func(int64) bool) *Int64Slicer
- func (s *Int64Slicer) Join(separator string) string
- func (s *Int64Slicer) Length() int
- func (s *Int64Slicer) Sort()
- type Int8Slicer
- func (s *Int8Slicer) Add(value int8, additional ...int8)
- func (s *Int8Slicer) AddSlice(value []int8)
- func (s *Int8Slicer) AddSlicer(value *Int8Slicer)
- func (s *Int8Slicer) AddUnique(value int8, additional ...int8)
- func (s *Int8Slicer) AsSlice() []int8
- func (s *Int8Slicer) Clear()
- func (s *Int8Slicer) Contains(matcher int8) bool
- func (s *Int8Slicer) Deduplicate()
- func (s *Int8Slicer) Each(fn func(int8))
- func (s *Int8Slicer) Filter(fn func(int8) bool) *Int8Slicer
- func (s *Int8Slicer) Join(separator string) string
- func (s *Int8Slicer) Length() int
- func (s *Int8Slicer) Sort()
- type IntSlicer
- func (s *IntSlicer) Add(value int, additional ...int)
- func (s *IntSlicer) AddSlice(value []int)
- func (s *IntSlicer) AddSlicer(value *IntSlicer)
- func (s *IntSlicer) AddUnique(value int, additional ...int)
- func (s *IntSlicer) AsSlice() []int
- func (s *IntSlicer) Clear()
- func (s *IntSlicer) Contains(matcher int) bool
- func (s *IntSlicer) Deduplicate()
- func (s *IntSlicer) Each(fn func(int))
- func (s *IntSlicer) Filter(fn func(int) bool) *IntSlicer
- func (s *IntSlicer) Join(separator string) string
- func (s *IntSlicer) Length() int
- func (s *IntSlicer) Sort()
- type InterfaceSlicer
- func (s *InterfaceSlicer) Add(value interface{}, additional ...interface{})
- func (s *InterfaceSlicer) AddSlice(value []interface{})
- func (s *InterfaceSlicer) AddSlicer(value *InterfaceSlicer)
- func (s *InterfaceSlicer) AddUnique(value interface{}, additional ...interface{})
- func (s *InterfaceSlicer) AsSlice() []interface{}
- func (s *InterfaceSlicer) Clear()
- func (s *InterfaceSlicer) Contains(matcher interface{}) bool
- func (s *InterfaceSlicer) Deduplicate()
- func (s *InterfaceSlicer) Each(fn func(interface{}))
- func (s *InterfaceSlicer) Filter(fn func(interface{}) bool) *InterfaceSlicer
- func (s *InterfaceSlicer) Join(separator string) string
- func (s *InterfaceSlicer) Length() int
- type StringSlicer
- func (s *StringSlicer) Add(value string, additional ...string)
- func (s *StringSlicer) AddSlice(value []string)
- func (s *StringSlicer) AddSlicer(value *StringSlicer)
- func (s *StringSlicer) AddUnique(value string, additional ...string)
- func (s *StringSlicer) AsSlice() []string
- func (s *StringSlicer) Clear()
- func (s *StringSlicer) Contains(matcher string) bool
- func (s *StringSlicer) Deduplicate()
- func (s *StringSlicer) Each(fn func(string))
- func (s *StringSlicer) Filter(fn func(string) bool) *StringSlicer
- func (s *StringSlicer) Join(separator string) string
- func (s *StringSlicer) Length() int
- func (s *StringSlicer) Sort()
- type Uint16Slicer
- func (s *Uint16Slicer) Add(value uint16, additional ...uint16)
- func (s *Uint16Slicer) AddSlice(value []uint16)
- func (s *Uint16Slicer) AddSlicer(value *Uint16Slicer)
- func (s *Uint16Slicer) AddUnique(value uint16, additional ...uint16)
- func (s *Uint16Slicer) AsSlice() []uint16
- func (s *Uint16Slicer) Clear()
- func (s *Uint16Slicer) Contains(matcher uint16) bool
- func (s *Uint16Slicer) Deduplicate()
- func (s *Uint16Slicer) Each(fn func(uint16))
- func (s *Uint16Slicer) Filter(fn func(uint16) bool) *Uint16Slicer
- func (s *Uint16Slicer) Join(separator string) string
- func (s *Uint16Slicer) Length() int
- func (s *Uint16Slicer) Sort()
- type Uint32Slicer
- func (s *Uint32Slicer) Add(value uint32, additional ...uint32)
- func (s *Uint32Slicer) AddSlice(value []uint32)
- func (s *Uint32Slicer) AddSlicer(value *Uint32Slicer)
- func (s *Uint32Slicer) AddUnique(value uint32, additional ...uint32)
- func (s *Uint32Slicer) AsSlice() []uint32
- func (s *Uint32Slicer) Clear()
- func (s *Uint32Slicer) Contains(matcher uint32) bool
- func (s *Uint32Slicer) Deduplicate()
- func (s *Uint32Slicer) Each(fn func(uint32))
- func (s *Uint32Slicer) Filter(fn func(uint32) bool) *Uint32Slicer
- func (s *Uint32Slicer) Join(separator string) string
- func (s *Uint32Slicer) Length() int
- func (s *Uint32Slicer) Sort()
- type Uint64Slicer
- func (s *Uint64Slicer) Add(value uint64, additional ...uint64)
- func (s *Uint64Slicer) AddSlice(value []uint64)
- func (s *Uint64Slicer) AddSlicer(value *Uint64Slicer)
- func (s *Uint64Slicer) AddUnique(value uint64, additional ...uint64)
- func (s *Uint64Slicer) AsSlice() []uint64
- func (s *Uint64Slicer) Clear()
- func (s *Uint64Slicer) Contains(matcher uint64) bool
- func (s *Uint64Slicer) Deduplicate()
- func (s *Uint64Slicer) Each(fn func(uint64))
- func (s *Uint64Slicer) Filter(fn func(uint64) bool) *Uint64Slicer
- func (s *Uint64Slicer) Join(separator string) string
- func (s *Uint64Slicer) Length() int
- func (s *Uint64Slicer) Sort()
- type Uint8Slicer
- func (s *Uint8Slicer) Add(value uint8, additional ...uint8)
- func (s *Uint8Slicer) AddSlice(value []uint8)
- func (s *Uint8Slicer) AddSlicer(value *Uint8Slicer)
- func (s *Uint8Slicer) AddUnique(value uint8, additional ...uint8)
- func (s *Uint8Slicer) AsSlice() []uint8
- func (s *Uint8Slicer) Clear()
- func (s *Uint8Slicer) Contains(matcher uint8) bool
- func (s *Uint8Slicer) Deduplicate()
- func (s *Uint8Slicer) Each(fn func(uint8))
- func (s *Uint8Slicer) Filter(fn func(uint8) bool) *Uint8Slicer
- func (s *Uint8Slicer) Join(separator string) string
- func (s *Uint8Slicer) Length() int
- func (s *Uint8Slicer) Sort()
- type UintSlicer
- func (s *UintSlicer) Add(value uint, additional ...uint)
- func (s *UintSlicer) AddSlice(value []uint)
- func (s *UintSlicer) AddSlicer(value *UintSlicer)
- func (s *UintSlicer) AddUnique(value uint, additional ...uint)
- func (s *UintSlicer) AsSlice() []uint
- func (s *UintSlicer) Clear()
- func (s *UintSlicer) Contains(matcher uint) bool
- func (s *UintSlicer) Deduplicate()
- func (s *UintSlicer) Each(fn func(uint))
- func (s *UintSlicer) Filter(fn func(uint) bool) *UintSlicer
- func (s *UintSlicer) Join(separator string) string
- func (s *UintSlicer) Length() int
- func (s *UintSlicer) Sort()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolSlicer ¶
type BoolSlicer struct {
// contains filtered or unexported fields
}
BoolSlicer handles slices of bool
func (*BoolSlicer) Add ¶
func (s *BoolSlicer) Add(value bool, additional ...bool)
Add a bool value to the slicer
func (*BoolSlicer) AddSlice ¶
func (s *BoolSlicer) AddSlice(value []bool)
AddSlice adds a bool slice to the slicer
func (*BoolSlicer) AddSlicer ¶
func (s *BoolSlicer) AddSlicer(value *BoolSlicer)
AddSlicer appends a BoolSlicer to the slicer
func (*BoolSlicer) AddUnique ¶ added in v1.5.0
func (s *BoolSlicer) AddUnique(value bool, additional ...bool)
AddUnique adds a bool value to the slicer if it does not already exist
func (*BoolSlicer) Clear ¶ added in v1.3.4
func (s *BoolSlicer) Clear()
Clear all elements in the slice
func (*BoolSlicer) Contains ¶ added in v1.3.3
func (s *BoolSlicer) Contains(matcher bool) bool
Contains indicates if the given value is in the slice
func (*BoolSlicer) Deduplicate ¶ added in v1.4.1
func (s *BoolSlicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*BoolSlicer) Each ¶ added in v1.2.0
func (s *BoolSlicer) Each(fn func(bool))
Each runs a function on every element of the slice
func (*BoolSlicer) Filter ¶ added in v1.1.0
func (s *BoolSlicer) Filter(fn func(bool) bool) *BoolSlicer
Filter the slice based on the given function
func (*BoolSlicer) Join ¶ added in v1.3.4
func (s *BoolSlicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*BoolSlicer) Length ¶ added in v1.3.4
func (s *BoolSlicer) Length() int
Length returns the number of elements in the slice
type Float32Slicer ¶
type Float32Slicer struct {
// contains filtered or unexported fields
}
Float32Slicer handles slices of float32
func (*Float32Slicer) Add ¶
func (s *Float32Slicer) Add(value float32, additional ...float32)
Add a float32 value to the slicer
func (*Float32Slicer) AddSlice ¶
func (s *Float32Slicer) AddSlice(value []float32)
AddSlice adds a float32 slice to the slicer
func (*Float32Slicer) AddSlicer ¶
func (s *Float32Slicer) AddSlicer(value *Float32Slicer)
AddSlicer appends a Float32Slicer to the slicer
func (*Float32Slicer) AddUnique ¶ added in v1.5.0
func (s *Float32Slicer) AddUnique(value float32, additional ...float32)
AddUnique adds a float32 value to the slicer if it does not already exist
func (*Float32Slicer) AsSlice ¶
func (s *Float32Slicer) AsSlice() []float32
AsSlice returns the slice
func (*Float32Slicer) Clear ¶ added in v1.3.4
func (s *Float32Slicer) Clear()
Clear all elements in the slice
func (*Float32Slicer) Contains ¶ added in v1.3.3
func (s *Float32Slicer) Contains(matcher float32) bool
Contains indicates if the given value is in the slice
func (*Float32Slicer) Deduplicate ¶ added in v1.4.1
func (s *Float32Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Float32Slicer) Each ¶ added in v1.2.0
func (s *Float32Slicer) Each(fn func(float32))
Each runs a function on every element of the slice
func (*Float32Slicer) Filter ¶ added in v1.1.0
func (s *Float32Slicer) Filter(fn func(float32) bool) *Float32Slicer
Filter the slice based on the given function
func (*Float32Slicer) Join ¶ added in v1.3.4
func (s *Float32Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Float32Slicer) Length ¶ added in v1.3.4
func (s *Float32Slicer) Length() int
Length returns the number of elements in the slice
type Float64Slicer ¶
type Float64Slicer struct {
// contains filtered or unexported fields
}
Float64Slicer handles slices of float64
func (*Float64Slicer) Add ¶
func (s *Float64Slicer) Add(value float64, additional ...float64)
Add a float64 value to the slicer
func (*Float64Slicer) AddSlice ¶
func (s *Float64Slicer) AddSlice(value []float64)
AddSlice adds a float64 slice to the slicer
func (*Float64Slicer) AddSlicer ¶
func (s *Float64Slicer) AddSlicer(value *Float64Slicer)
AddSlicer appends a Float64Slicer to the slicer
func (*Float64Slicer) AddUnique ¶ added in v1.5.0
func (s *Float64Slicer) AddUnique(value float64, additional ...float64)
AddUnique adds a float64 value to the slicer if it does not already exist
func (*Float64Slicer) AsSlice ¶
func (s *Float64Slicer) AsSlice() []float64
AsSlice returns the slice
func (*Float64Slicer) Clear ¶ added in v1.3.4
func (s *Float64Slicer) Clear()
Clear all elements in the slice
func (*Float64Slicer) Contains ¶ added in v1.3.3
func (s *Float64Slicer) Contains(matcher float64) bool
Contains indicates if the given value is in the slice
func (*Float64Slicer) Deduplicate ¶ added in v1.4.1
func (s *Float64Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Float64Slicer) Each ¶ added in v1.2.0
func (s *Float64Slicer) Each(fn func(float64))
Each runs a function on every element of the slice
func (*Float64Slicer) Filter ¶ added in v1.1.0
func (s *Float64Slicer) Filter(fn func(float64) bool) *Float64Slicer
Filter the slice based on the given function
func (*Float64Slicer) Join ¶ added in v1.3.4
func (s *Float64Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Float64Slicer) Length ¶ added in v1.3.4
func (s *Float64Slicer) Length() int
Length returns the number of elements in the slice
type Int16Slicer ¶
type Int16Slicer struct {
// contains filtered or unexported fields
}
Int16Slicer handles slices of int16
func (*Int16Slicer) Add ¶
func (s *Int16Slicer) Add(value int16, additional ...int16)
Add a int16 value to the slicer
func (*Int16Slicer) AddSlice ¶
func (s *Int16Slicer) AddSlice(value []int16)
AddSlice adds a int16 slice to the slicer
func (*Int16Slicer) AddSlicer ¶
func (s *Int16Slicer) AddSlicer(value *Int16Slicer)
AddSlicer appends a Int16Slicer to the slicer
func (*Int16Slicer) AddUnique ¶ added in v1.5.0
func (s *Int16Slicer) AddUnique(value int16, additional ...int16)
AddUnique adds a int16 value to the slicer if it does not already exist
func (*Int16Slicer) Clear ¶ added in v1.3.4
func (s *Int16Slicer) Clear()
Clear all elements in the slice
func (*Int16Slicer) Contains ¶ added in v1.3.3
func (s *Int16Slicer) Contains(matcher int16) bool
Contains indicates if the given value is in the slice
func (*Int16Slicer) Deduplicate ¶ added in v1.4.1
func (s *Int16Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Int16Slicer) Each ¶ added in v1.2.0
func (s *Int16Slicer) Each(fn func(int16))
Each runs a function on every element of the slice
func (*Int16Slicer) Filter ¶ added in v1.1.0
func (s *Int16Slicer) Filter(fn func(int16) bool) *Int16Slicer
Filter the slice based on the given function
func (*Int16Slicer) Join ¶ added in v1.3.4
func (s *Int16Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Int16Slicer) Length ¶ added in v1.3.4
func (s *Int16Slicer) Length() int
Length returns the number of elements in the slice
type Int32Slicer ¶
type Int32Slicer struct {
// contains filtered or unexported fields
}
Int32Slicer handles slices of int32
func (*Int32Slicer) Add ¶
func (s *Int32Slicer) Add(value int32, additional ...int32)
Add a int32 value to the slicer
func (*Int32Slicer) AddSlice ¶
func (s *Int32Slicer) AddSlice(value []int32)
AddSlice adds a int32 slice to the slicer
func (*Int32Slicer) AddSlicer ¶
func (s *Int32Slicer) AddSlicer(value *Int32Slicer)
AddSlicer appends a Int32Slicer to the slicer
func (*Int32Slicer) AddUnique ¶ added in v1.5.0
func (s *Int32Slicer) AddUnique(value int32, additional ...int32)
AddUnique adds a int32 value to the slicer if it does not already exist
func (*Int32Slicer) Clear ¶ added in v1.3.4
func (s *Int32Slicer) Clear()
Clear all elements in the slice
func (*Int32Slicer) Contains ¶ added in v1.3.3
func (s *Int32Slicer) Contains(matcher int32) bool
Contains indicates if the given value is in the slice
func (*Int32Slicer) Deduplicate ¶ added in v1.4.1
func (s *Int32Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Int32Slicer) Each ¶ added in v1.2.0
func (s *Int32Slicer) Each(fn func(int32))
Each runs a function on every element of the slice
func (*Int32Slicer) Filter ¶ added in v1.1.0
func (s *Int32Slicer) Filter(fn func(int32) bool) *Int32Slicer
Filter the slice based on the given function
func (*Int32Slicer) Join ¶ added in v1.3.4
func (s *Int32Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Int32Slicer) Length ¶ added in v1.3.4
func (s *Int32Slicer) Length() int
Length returns the number of elements in the slice
type Int64Slicer ¶
type Int64Slicer struct {
// contains filtered or unexported fields
}
Int64Slicer handles slices of int64
func (*Int64Slicer) Add ¶
func (s *Int64Slicer) Add(value int64, additional ...int64)
Add a int64 value to the slicer
func (*Int64Slicer) AddSlice ¶
func (s *Int64Slicer) AddSlice(value []int64)
AddSlice adds a int64 slice to the slicer
func (*Int64Slicer) AddSlicer ¶
func (s *Int64Slicer) AddSlicer(value *Int64Slicer)
AddSlicer appends a Int64Slicer to the slicer
func (*Int64Slicer) AddUnique ¶ added in v1.5.0
func (s *Int64Slicer) AddUnique(value int64, additional ...int64)
AddUnique adds a int64 value to the slicer if it does not already exist
func (*Int64Slicer) Clear ¶ added in v1.3.4
func (s *Int64Slicer) Clear()
Clear all elements in the slice
func (*Int64Slicer) Contains ¶ added in v1.3.3
func (s *Int64Slicer) Contains(matcher int64) bool
Contains indicates if the given value is in the slice
func (*Int64Slicer) Deduplicate ¶ added in v1.4.1
func (s *Int64Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Int64Slicer) Each ¶ added in v1.2.0
func (s *Int64Slicer) Each(fn func(int64))
Each runs a function on every element of the slice
func (*Int64Slicer) Filter ¶ added in v1.1.0
func (s *Int64Slicer) Filter(fn func(int64) bool) *Int64Slicer
Filter the slice based on the given function
func (*Int64Slicer) Join ¶ added in v1.3.4
func (s *Int64Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Int64Slicer) Length ¶ added in v1.3.4
func (s *Int64Slicer) Length() int
Length returns the number of elements in the slice
type Int8Slicer ¶
type Int8Slicer struct {
// contains filtered or unexported fields
}
Int8Slicer handles slices of int8
func (*Int8Slicer) Add ¶
func (s *Int8Slicer) Add(value int8, additional ...int8)
Add a int8 value to the slicer
func (*Int8Slicer) AddSlice ¶
func (s *Int8Slicer) AddSlice(value []int8)
AddSlice adds a int8 slice to the slicer
func (*Int8Slicer) AddSlicer ¶
func (s *Int8Slicer) AddSlicer(value *Int8Slicer)
AddSlicer appends a Int8Slicer to the slicer
func (*Int8Slicer) AddUnique ¶ added in v1.5.0
func (s *Int8Slicer) AddUnique(value int8, additional ...int8)
AddUnique adds a int8 value to the slicer if it does not already exist
func (*Int8Slicer) Clear ¶ added in v1.3.4
func (s *Int8Slicer) Clear()
Clear all elements in the slice
func (*Int8Slicer) Contains ¶ added in v1.3.3
func (s *Int8Slicer) Contains(matcher int8) bool
Contains indicates if the given value is in the slice
func (*Int8Slicer) Deduplicate ¶ added in v1.4.1
func (s *Int8Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Int8Slicer) Each ¶ added in v1.2.0
func (s *Int8Slicer) Each(fn func(int8))
Each runs a function on every element of the slice
func (*Int8Slicer) Filter ¶ added in v1.1.0
func (s *Int8Slicer) Filter(fn func(int8) bool) *Int8Slicer
Filter the slice based on the given function
func (*Int8Slicer) Join ¶ added in v1.3.4
func (s *Int8Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Int8Slicer) Length ¶ added in v1.3.4
func (s *Int8Slicer) Length() int
Length returns the number of elements in the slice
type IntSlicer ¶
type IntSlicer struct {
// contains filtered or unexported fields
}
IntSlicer handles slices of int
func (*IntSlicer) AddUnique ¶ added in v1.5.0
AddUnique adds a int value to the slicer if it does not already exist
func (*IntSlicer) Clear ¶ added in v1.3.4
func (s *IntSlicer) Clear()
Clear all elements in the slice
func (*IntSlicer) Deduplicate ¶ added in v1.4.1
func (s *IntSlicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*IntSlicer) Join ¶ added in v1.3.4
Join returns a string with the slicer elements separated by the given separator
type InterfaceSlicer ¶
type InterfaceSlicer struct {
// contains filtered or unexported fields
}
InterfaceSlicer handles slices of interface{}
func Interface ¶
func Interface(slice ...[]interface{}) *InterfaceSlicer
Interface creates a new InterfaceSlicer
func (*InterfaceSlicer) Add ¶
func (s *InterfaceSlicer) Add(value interface{}, additional ...interface{})
Add a interface{} value to the slicer
func (*InterfaceSlicer) AddSlice ¶
func (s *InterfaceSlicer) AddSlice(value []interface{})
AddSlice adds a interface{} slice to the slicer
func (*InterfaceSlicer) AddSlicer ¶
func (s *InterfaceSlicer) AddSlicer(value *InterfaceSlicer)
AddSlicer appends a InterfaceSlicer to the slicer
func (*InterfaceSlicer) AddUnique ¶ added in v1.5.0
func (s *InterfaceSlicer) AddUnique(value interface{}, additional ...interface{})
AddUnique adds a interface{} value to the slicer if it does not already exist
func (*InterfaceSlicer) AsSlice ¶
func (s *InterfaceSlicer) AsSlice() []interface{}
AsSlice returns the slice
func (*InterfaceSlicer) Clear ¶ added in v1.3.4
func (s *InterfaceSlicer) Clear()
Clear all elements in the slice
func (*InterfaceSlicer) Contains ¶ added in v1.3.3
func (s *InterfaceSlicer) Contains(matcher interface{}) bool
Contains indicates if the given value is in the slice
func (*InterfaceSlicer) Deduplicate ¶ added in v1.4.1
func (s *InterfaceSlicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*InterfaceSlicer) Each ¶ added in v1.2.0
func (s *InterfaceSlicer) Each(fn func(interface{}))
Each runs a function on every element of the slice
func (*InterfaceSlicer) Filter ¶ added in v1.1.0
func (s *InterfaceSlicer) Filter(fn func(interface{}) bool) *InterfaceSlicer
Filter the slice based on the given function
func (*InterfaceSlicer) Join ¶ added in v1.3.4
func (s *InterfaceSlicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*InterfaceSlicer) Length ¶ added in v1.3.4
func (s *InterfaceSlicer) Length() int
Length returns the number of elements in the slice
type StringSlicer ¶
type StringSlicer struct {
// contains filtered or unexported fields
}
StringSlicer handles slices of string
func (*StringSlicer) Add ¶
func (s *StringSlicer) Add(value string, additional ...string)
Add a string value to the slicer
func (*StringSlicer) AddSlice ¶
func (s *StringSlicer) AddSlice(value []string)
AddSlice adds a string slice to the slicer
func (*StringSlicer) AddSlicer ¶
func (s *StringSlicer) AddSlicer(value *StringSlicer)
AddSlicer appends a StringSlicer to the slicer
func (*StringSlicer) AddUnique ¶ added in v1.5.0
func (s *StringSlicer) AddUnique(value string, additional ...string)
AddUnique adds a string value to the slicer if it does not already exist
func (*StringSlicer) Clear ¶ added in v1.3.4
func (s *StringSlicer) Clear()
Clear all elements in the slice
func (*StringSlicer) Contains ¶ added in v1.3.3
func (s *StringSlicer) Contains(matcher string) bool
Contains indicates if the given value is in the slice
func (*StringSlicer) Deduplicate ¶ added in v1.4.1
func (s *StringSlicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*StringSlicer) Each ¶ added in v1.2.0
func (s *StringSlicer) Each(fn func(string))
Each runs a function on every element of the slice
func (*StringSlicer) Filter ¶ added in v1.1.0
func (s *StringSlicer) Filter(fn func(string) bool) *StringSlicer
Filter the slice based on the given function
func (*StringSlicer) Join ¶ added in v1.3.4
func (s *StringSlicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*StringSlicer) Length ¶ added in v1.3.4
func (s *StringSlicer) Length() int
Length returns the number of elements in the slice
type Uint16Slicer ¶ added in v1.6.0
type Uint16Slicer struct {
// contains filtered or unexported fields
}
Uint16Slicer handles slices of uint16
func Uint16 ¶ added in v1.6.0
func Uint16(slice ...[]uint16) *Uint16Slicer
Uint16 creates a new Uint16Slicer
func (*Uint16Slicer) Add ¶ added in v1.6.0
func (s *Uint16Slicer) Add(value uint16, additional ...uint16)
Add a uint16 value to the slicer
func (*Uint16Slicer) AddSlice ¶ added in v1.6.0
func (s *Uint16Slicer) AddSlice(value []uint16)
AddSlice adds a uint16 slice to the slicer
func (*Uint16Slicer) AddSlicer ¶ added in v1.6.0
func (s *Uint16Slicer) AddSlicer(value *Uint16Slicer)
AddSlicer appends a Uint16Slicer to the slicer
func (*Uint16Slicer) AddUnique ¶ added in v1.6.0
func (s *Uint16Slicer) AddUnique(value uint16, additional ...uint16)
AddUnique adds a uint16 value to the slicer if it does not already exist
func (*Uint16Slicer) AsSlice ¶ added in v1.6.0
func (s *Uint16Slicer) AsSlice() []uint16
AsSlice returns the slice
func (*Uint16Slicer) Clear ¶ added in v1.6.0
func (s *Uint16Slicer) Clear()
Clear all elements in the slice
func (*Uint16Slicer) Contains ¶ added in v1.6.0
func (s *Uint16Slicer) Contains(matcher uint16) bool
Contains indicates if the given value is in the slice
func (*Uint16Slicer) Deduplicate ¶ added in v1.6.0
func (s *Uint16Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Uint16Slicer) Each ¶ added in v1.6.0
func (s *Uint16Slicer) Each(fn func(uint16))
Each runs a function on every element of the slice
func (*Uint16Slicer) Filter ¶ added in v1.6.0
func (s *Uint16Slicer) Filter(fn func(uint16) bool) *Uint16Slicer
Filter the slice based on the given function
func (*Uint16Slicer) Join ¶ added in v1.6.0
func (s *Uint16Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Uint16Slicer) Length ¶ added in v1.6.0
func (s *Uint16Slicer) Length() int
Length returns the number of elements in the slice
type Uint32Slicer ¶ added in v1.6.0
type Uint32Slicer struct {
// contains filtered or unexported fields
}
Uint32Slicer handles slices of uint32
func Uint32 ¶ added in v1.6.0
func Uint32(slice ...[]uint32) *Uint32Slicer
Uint32 creates a new Uint32Slicer
func (*Uint32Slicer) Add ¶ added in v1.6.0
func (s *Uint32Slicer) Add(value uint32, additional ...uint32)
Add a uint32 value to the slicer
func (*Uint32Slicer) AddSlice ¶ added in v1.6.0
func (s *Uint32Slicer) AddSlice(value []uint32)
AddSlice adds a uint32 slice to the slicer
func (*Uint32Slicer) AddSlicer ¶ added in v1.6.0
func (s *Uint32Slicer) AddSlicer(value *Uint32Slicer)
AddSlicer appends a Uint32Slicer to the slicer
func (*Uint32Slicer) AddUnique ¶ added in v1.6.0
func (s *Uint32Slicer) AddUnique(value uint32, additional ...uint32)
AddUnique adds a uint32 value to the slicer if it does not already exist
func (*Uint32Slicer) AsSlice ¶ added in v1.6.0
func (s *Uint32Slicer) AsSlice() []uint32
AsSlice returns the slice
func (*Uint32Slicer) Clear ¶ added in v1.6.0
func (s *Uint32Slicer) Clear()
Clear all elements in the slice
func (*Uint32Slicer) Contains ¶ added in v1.6.0
func (s *Uint32Slicer) Contains(matcher uint32) bool
Contains indicates if the given value is in the slice
func (*Uint32Slicer) Deduplicate ¶ added in v1.6.0
func (s *Uint32Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Uint32Slicer) Each ¶ added in v1.6.0
func (s *Uint32Slicer) Each(fn func(uint32))
Each runs a function on every element of the slice
func (*Uint32Slicer) Filter ¶ added in v1.6.0
func (s *Uint32Slicer) Filter(fn func(uint32) bool) *Uint32Slicer
Filter the slice based on the given function
func (*Uint32Slicer) Join ¶ added in v1.6.0
func (s *Uint32Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Uint32Slicer) Length ¶ added in v1.6.0
func (s *Uint32Slicer) Length() int
Length returns the number of elements in the slice
type Uint64Slicer ¶ added in v1.6.0
type Uint64Slicer struct {
// contains filtered or unexported fields
}
Uint64Slicer handles slices of uint64
func Uint64 ¶ added in v1.6.0
func Uint64(slice ...[]uint64) *Uint64Slicer
Uint64 creates a new Uint64Slicer
func (*Uint64Slicer) Add ¶ added in v1.6.0
func (s *Uint64Slicer) Add(value uint64, additional ...uint64)
Add a uint64 value to the slicer
func (*Uint64Slicer) AddSlice ¶ added in v1.6.0
func (s *Uint64Slicer) AddSlice(value []uint64)
AddSlice adds a uint64 slice to the slicer
func (*Uint64Slicer) AddSlicer ¶ added in v1.6.0
func (s *Uint64Slicer) AddSlicer(value *Uint64Slicer)
AddSlicer appends a Uint64Slicer to the slicer
func (*Uint64Slicer) AddUnique ¶ added in v1.6.0
func (s *Uint64Slicer) AddUnique(value uint64, additional ...uint64)
AddUnique adds a uint64 value to the slicer if it does not already exist
func (*Uint64Slicer) AsSlice ¶ added in v1.6.0
func (s *Uint64Slicer) AsSlice() []uint64
AsSlice returns the slice
func (*Uint64Slicer) Clear ¶ added in v1.6.0
func (s *Uint64Slicer) Clear()
Clear all elements in the slice
func (*Uint64Slicer) Contains ¶ added in v1.6.0
func (s *Uint64Slicer) Contains(matcher uint64) bool
Contains indicates if the given value is in the slice
func (*Uint64Slicer) Deduplicate ¶ added in v1.6.0
func (s *Uint64Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Uint64Slicer) Each ¶ added in v1.6.0
func (s *Uint64Slicer) Each(fn func(uint64))
Each runs a function on every element of the slice
func (*Uint64Slicer) Filter ¶ added in v1.6.0
func (s *Uint64Slicer) Filter(fn func(uint64) bool) *Uint64Slicer
Filter the slice based on the given function
func (*Uint64Slicer) Join ¶ added in v1.6.0
func (s *Uint64Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Uint64Slicer) Length ¶ added in v1.6.0
func (s *Uint64Slicer) Length() int
Length returns the number of elements in the slice
type Uint8Slicer ¶ added in v1.6.0
type Uint8Slicer struct {
// contains filtered or unexported fields
}
Uint8Slicer handles slices of uint8
func Uint8 ¶ added in v1.6.0
func Uint8(slice ...[]uint8) *Uint8Slicer
Uint8 creates a new Uint8Slicer
func (*Uint8Slicer) Add ¶ added in v1.6.0
func (s *Uint8Slicer) Add(value uint8, additional ...uint8)
Add a uint8 value to the slicer
func (*Uint8Slicer) AddSlice ¶ added in v1.6.0
func (s *Uint8Slicer) AddSlice(value []uint8)
AddSlice adds a uint8 slice to the slicer
func (*Uint8Slicer) AddSlicer ¶ added in v1.6.0
func (s *Uint8Slicer) AddSlicer(value *Uint8Slicer)
AddSlicer appends a Uint8Slicer to the slicer
func (*Uint8Slicer) AddUnique ¶ added in v1.6.0
func (s *Uint8Slicer) AddUnique(value uint8, additional ...uint8)
AddUnique adds a uint8 value to the slicer if it does not already exist
func (*Uint8Slicer) AsSlice ¶ added in v1.6.0
func (s *Uint8Slicer) AsSlice() []uint8
AsSlice returns the slice
func (*Uint8Slicer) Clear ¶ added in v1.6.0
func (s *Uint8Slicer) Clear()
Clear all elements in the slice
func (*Uint8Slicer) Contains ¶ added in v1.6.0
func (s *Uint8Slicer) Contains(matcher uint8) bool
Contains indicates if the given value is in the slice
func (*Uint8Slicer) Deduplicate ¶ added in v1.6.0
func (s *Uint8Slicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*Uint8Slicer) Each ¶ added in v1.6.0
func (s *Uint8Slicer) Each(fn func(uint8))
Each runs a function on every element of the slice
func (*Uint8Slicer) Filter ¶ added in v1.6.0
func (s *Uint8Slicer) Filter(fn func(uint8) bool) *Uint8Slicer
Filter the slice based on the given function
func (*Uint8Slicer) Join ¶ added in v1.6.0
func (s *Uint8Slicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*Uint8Slicer) Length ¶ added in v1.6.0
func (s *Uint8Slicer) Length() int
Length returns the number of elements in the slice
type UintSlicer ¶ added in v1.6.0
type UintSlicer struct {
// contains filtered or unexported fields
}
UintSlicer handles slices of uint
func (*UintSlicer) Add ¶ added in v1.6.0
func (s *UintSlicer) Add(value uint, additional ...uint)
Add a uint value to the slicer
func (*UintSlicer) AddSlice ¶ added in v1.6.0
func (s *UintSlicer) AddSlice(value []uint)
AddSlice adds a uint slice to the slicer
func (*UintSlicer) AddSlicer ¶ added in v1.6.0
func (s *UintSlicer) AddSlicer(value *UintSlicer)
AddSlicer appends a UintSlicer to the slicer
func (*UintSlicer) AddUnique ¶ added in v1.6.0
func (s *UintSlicer) AddUnique(value uint, additional ...uint)
AddUnique adds a uint value to the slicer if it does not already exist
func (*UintSlicer) AsSlice ¶ added in v1.6.0
func (s *UintSlicer) AsSlice() []uint
AsSlice returns the slice
func (*UintSlicer) Clear ¶ added in v1.6.0
func (s *UintSlicer) Clear()
Clear all elements in the slice
func (*UintSlicer) Contains ¶ added in v1.6.0
func (s *UintSlicer) Contains(matcher uint) bool
Contains indicates if the given value is in the slice
func (*UintSlicer) Deduplicate ¶ added in v1.6.0
func (s *UintSlicer) Deduplicate()
Deduplicate removes duplicate values from the slice
func (*UintSlicer) Each ¶ added in v1.6.0
func (s *UintSlicer) Each(fn func(uint))
Each runs a function on every element of the slice
func (*UintSlicer) Filter ¶ added in v1.6.0
func (s *UintSlicer) Filter(fn func(uint) bool) *UintSlicer
Filter the slice based on the given function
func (*UintSlicer) Join ¶ added in v1.6.0
func (s *UintSlicer) Join(separator string) string
Join returns a string with the slicer elements separated by the given separator
func (*UintSlicer) Length ¶ added in v1.6.0
func (s *UintSlicer) Length() int
Length returns the number of elements in the slice