Versions in this module Expand all Collapse all v2 v2.7.2 Aug 2, 2024 Changes in this version + type Array struct + func New(safe ...bool) *Array + func NewArray(safe ...bool) *Array + func NewArrayFrom(array []interface{}, safe ...bool) *Array + func NewArrayFromCopy(array []interface{}, safe ...bool) *Array + func NewArrayRange(start, end, step int, safe ...bool) *Array + func NewArraySize(size int, cap int, safe ...bool) *Array + func NewFrom(array []interface{}, safe ...bool) *Array + func NewFromCopy(array []interface{}, safe ...bool) *Array + func (a *Array) Append(value ...interface{}) *Array + func (a *Array) At(index int) (value interface{}) + func (a *Array) Chunk(size int) [][]interface{} + func (a *Array) Clear() *Array + func (a *Array) Clone() (newArray *Array) + func (a *Array) Contains(value interface{}) bool + func (a *Array) CountValues() map[interface{}]int + func (a *Array) DeepCopy() interface{} + func (a *Array) Fill(startIndex int, num int, value interface{}) error + func (a *Array) Filter(filter func(index int, value interface{}) bool) *Array + func (a *Array) FilterEmpty() *Array + func (a *Array) FilterNil() *Array + func (a *Array) Get(index int) (value interface{}, found bool) + func (a *Array) InsertAfter(index int, values ...interface{}) error + func (a *Array) InsertBefore(index int, values ...interface{}) error + func (a *Array) Interfaces() []interface{} + func (a *Array) IsEmpty() bool + func (a *Array) Iterator(f func(k int, v interface{}) bool) + func (a *Array) IteratorAsc(f func(k int, v interface{}) bool) + func (a *Array) IteratorDesc(f func(k int, v interface{}) bool) + func (a *Array) Join(glue string) string + func (a *Array) Len() int + func (a *Array) LockFunc(f func(array []interface{})) *Array + func (a *Array) Merge(array interface{}) *Array + func (a *Array) Pad(size int, val interface{}) *Array + func (a *Array) PopLeft() (value interface{}, found bool) + func (a *Array) PopLefts(size int) []interface{} + func (a *Array) PopRand() (value interface{}, found bool) + func (a *Array) PopRands(size int) []interface{} + func (a *Array) PopRight() (value interface{}, found bool) + func (a *Array) PopRights(size int) []interface{} + func (a *Array) PushLeft(value ...interface{}) *Array + func (a *Array) PushRight(value ...interface{}) *Array + func (a *Array) RLockFunc(f func(array []interface{})) *Array + func (a *Array) Rand() (value interface{}, found bool) + func (a *Array) Rands(size int) []interface{} + func (a *Array) Range(start int, end ...int) []interface{} + func (a *Array) Remove(index int) (value interface{}, found bool) + func (a *Array) RemoveValue(value interface{}) bool + func (a *Array) RemoveValues(values ...interface{}) + func (a *Array) Replace(array []interface{}) *Array + func (a *Array) Reverse() *Array + func (a *Array) Search(value interface{}) int + func (a *Array) Set(index int, value interface{}) error + func (a *Array) SetArray(array []interface{}) *Array + func (a *Array) Shuffle() *Array + func (a *Array) Slice() []interface{} + func (a *Array) SortFunc(less func(v1, v2 interface{}) bool) *Array + func (a *Array) String() string + func (a *Array) SubSlice(offset int, length ...int) []interface{} + func (a *Array) Sum() (sum int) + func (a *Array) Unique() *Array + func (a *Array) UnmarshalJSON(b []byte) error + func (a *Array) UnmarshalValue(value interface{}) error + func (a *Array) Walk(f func(value interface{}) interface{}) *Array + func (a Array) MarshalJSON() ([]byte, error) + type IntArray struct + func NewIntArray(safe ...bool) *IntArray + func NewIntArrayFrom(array []int, safe ...bool) *IntArray + func NewIntArrayFromCopy(array []int, safe ...bool) *IntArray + func NewIntArrayRange(start, end, step int, safe ...bool) *IntArray + func NewIntArraySize(size int, cap int, safe ...bool) *IntArray + func (a *IntArray) Append(value ...int) *IntArray + func (a *IntArray) At(index int) (value int) + func (a *IntArray) Chunk(size int) [][]int + func (a *IntArray) Clear() *IntArray + func (a *IntArray) Clone() (newArray *IntArray) + func (a *IntArray) Contains(value int) bool + func (a *IntArray) CountValues() map[int]int + func (a *IntArray) DeepCopy() interface{} + func (a *IntArray) Fill(startIndex int, num int, value int) error + func (a *IntArray) Filter(filter func(index int, value int) bool) *IntArray + func (a *IntArray) FilterEmpty() *IntArray + func (a *IntArray) Get(index int) (value int, found bool) + func (a *IntArray) InsertAfter(index int, values ...int) error + func (a *IntArray) InsertBefore(index int, values ...int) error + func (a *IntArray) Interfaces() []interface{} + func (a *IntArray) IsEmpty() bool + func (a *IntArray) Iterator(f func(k int, v int) bool) + func (a *IntArray) IteratorAsc(f func(k int, v int) bool) + func (a *IntArray) IteratorDesc(f func(k int, v int) bool) + func (a *IntArray) Join(glue string) string + func (a *IntArray) Len() int + func (a *IntArray) LockFunc(f func(array []int)) *IntArray + func (a *IntArray) Merge(array interface{}) *IntArray + func (a *IntArray) Pad(size int, value int) *IntArray + func (a *IntArray) PopLeft() (value int, found bool) + func (a *IntArray) PopLefts(size int) []int + func (a *IntArray) PopRand() (value int, found bool) + func (a *IntArray) PopRands(size int) []int + func (a *IntArray) PopRight() (value int, found bool) + func (a *IntArray) PopRights(size int) []int + func (a *IntArray) PushLeft(value ...int) *IntArray + func (a *IntArray) PushRight(value ...int) *IntArray + func (a *IntArray) RLockFunc(f func(array []int)) *IntArray + func (a *IntArray) Rand() (value int, found bool) + func (a *IntArray) Rands(size int) []int + func (a *IntArray) Range(start int, end ...int) []int + func (a *IntArray) Remove(index int) (value int, found bool) + func (a *IntArray) RemoveValue(value int) bool + func (a *IntArray) RemoveValues(values ...int) + func (a *IntArray) Replace(array []int) *IntArray + func (a *IntArray) Reverse() *IntArray + func (a *IntArray) Search(value int) int + func (a *IntArray) Set(index int, value int) error + func (a *IntArray) SetArray(array []int) *IntArray + func (a *IntArray) Shuffle() *IntArray + func (a *IntArray) Slice() []int + func (a *IntArray) Sort(reverse ...bool) *IntArray + func (a *IntArray) SortFunc(less func(v1, v2 int) bool) *IntArray + func (a *IntArray) String() string + func (a *IntArray) SubSlice(offset int, length ...int) []int + func (a *IntArray) Sum() (sum int) + func (a *IntArray) Unique() *IntArray + func (a *IntArray) UnmarshalJSON(b []byte) error + func (a *IntArray) UnmarshalValue(value interface{}) error + func (a *IntArray) Walk(f func(value int) int) *IntArray + func (a IntArray) MarshalJSON() ([]byte, error) + type SortedArray struct + func NewSortedArray(comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func NewSortedArrayFrom(array []interface{}, comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func NewSortedArrayFromCopy(array []interface{}, comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func NewSortedArrayRange(start, end, step int, comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func NewSortedArraySize(cap int, comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func (a *SortedArray) Add(values ...interface{}) *SortedArray + func (a *SortedArray) Append(values ...interface{}) *SortedArray + func (a *SortedArray) At(index int) (value interface{}) + func (a *SortedArray) Chunk(size int) [][]interface{} + func (a *SortedArray) Clear() *SortedArray + func (a *SortedArray) Clone() (newArray *SortedArray) + func (a *SortedArray) Contains(value interface{}) bool + func (a *SortedArray) CountValues() map[interface{}]int + func (a *SortedArray) DeepCopy() interface{} + func (a *SortedArray) Filter(filter func(index int, value interface{}) bool) *SortedArray + func (a *SortedArray) FilterEmpty() *SortedArray + func (a *SortedArray) FilterNil() *SortedArray + func (a *SortedArray) Get(index int) (value interface{}, found bool) + func (a *SortedArray) Interfaces() []interface{} + func (a *SortedArray) IsEmpty() bool + func (a *SortedArray) Iterator(f func(k int, v interface{}) bool) + func (a *SortedArray) IteratorAsc(f func(k int, v interface{}) bool) + func (a *SortedArray) IteratorDesc(f func(k int, v interface{}) bool) + func (a *SortedArray) Join(glue string) string + func (a *SortedArray) Len() int + func (a *SortedArray) LockFunc(f func(array []interface{})) *SortedArray + func (a *SortedArray) Merge(array interface{}) *SortedArray + func (a *SortedArray) PopLeft() (value interface{}, found bool) + func (a *SortedArray) PopLefts(size int) []interface{} + func (a *SortedArray) PopRand() (value interface{}, found bool) + func (a *SortedArray) PopRands(size int) []interface{} + func (a *SortedArray) PopRight() (value interface{}, found bool) + func (a *SortedArray) PopRights(size int) []interface{} + func (a *SortedArray) RLockFunc(f func(array []interface{})) *SortedArray + func (a *SortedArray) Rand() (value interface{}, found bool) + func (a *SortedArray) Rands(size int) []interface{} + func (a *SortedArray) Range(start int, end ...int) []interface{} + func (a *SortedArray) Remove(index int) (value interface{}, found bool) + func (a *SortedArray) RemoveValue(value interface{}) bool + func (a *SortedArray) RemoveValues(values ...interface{}) + func (a *SortedArray) Search(value interface{}) (index int) + func (a *SortedArray) SetArray(array []interface{}) *SortedArray + func (a *SortedArray) SetComparator(comparator func(a, b interface{}) int) + func (a *SortedArray) SetUnique(unique bool) *SortedArray + func (a *SortedArray) Slice() []interface{} + func (a *SortedArray) Sort() *SortedArray + func (a *SortedArray) String() string + func (a *SortedArray) SubSlice(offset int, length ...int) []interface{} + func (a *SortedArray) Sum() (sum int) + func (a *SortedArray) Unique() *SortedArray + func (a *SortedArray) UnmarshalJSON(b []byte) error + func (a *SortedArray) UnmarshalValue(value interface{}) (err error) + func (a *SortedArray) Walk(f func(value interface{}) interface{}) *SortedArray + func (a SortedArray) MarshalJSON() ([]byte, error) + type SortedIntArray struct + func NewSortedIntArray(safe ...bool) *SortedIntArray + func NewSortedIntArrayComparator(comparator func(a, b int) int, safe ...bool) *SortedIntArray + func NewSortedIntArrayFrom(array []int, safe ...bool) *SortedIntArray + func NewSortedIntArrayFromCopy(array []int, safe ...bool) *SortedIntArray + func NewSortedIntArrayRange(start, end, step int, safe ...bool) *SortedIntArray + func NewSortedIntArraySize(cap int, safe ...bool) *SortedIntArray + func (a *SortedIntArray) Add(values ...int) *SortedIntArray + func (a *SortedIntArray) Append(values ...int) *SortedIntArray + func (a *SortedIntArray) At(index int) (value int) + func (a *SortedIntArray) Chunk(size int) [][]int + func (a *SortedIntArray) Clear() *SortedIntArray + func (a *SortedIntArray) Clone() (newArray *SortedIntArray) + func (a *SortedIntArray) Contains(value int) bool + func (a *SortedIntArray) CountValues() map[int]int + func (a *SortedIntArray) DeepCopy() interface{} + func (a *SortedIntArray) Filter(filter func(index int, value int) bool) *SortedIntArray + func (a *SortedIntArray) FilterEmpty() *SortedIntArray + func (a *SortedIntArray) Get(index int) (value int, found bool) + func (a *SortedIntArray) Interfaces() []interface{} + func (a *SortedIntArray) IsEmpty() bool + func (a *SortedIntArray) Iterator(f func(k int, v int) bool) + func (a *SortedIntArray) IteratorAsc(f func(k int, v int) bool) + func (a *SortedIntArray) IteratorDesc(f func(k int, v int) bool) + func (a *SortedIntArray) Join(glue string) string + func (a *SortedIntArray) Len() int + func (a *SortedIntArray) LockFunc(f func(array []int)) *SortedIntArray + func (a *SortedIntArray) Merge(array interface{}) *SortedIntArray + func (a *SortedIntArray) PopLeft() (value int, found bool) + func (a *SortedIntArray) PopLefts(size int) []int + func (a *SortedIntArray) PopRand() (value int, found bool) + func (a *SortedIntArray) PopRands(size int) []int + func (a *SortedIntArray) PopRight() (value int, found bool) + func (a *SortedIntArray) PopRights(size int) []int + func (a *SortedIntArray) RLockFunc(f func(array []int)) *SortedIntArray + func (a *SortedIntArray) Rand() (value int, found bool) + func (a *SortedIntArray) Rands(size int) []int + func (a *SortedIntArray) Range(start int, end ...int) []int + func (a *SortedIntArray) Remove(index int) (value int, found bool) + func (a *SortedIntArray) RemoveValue(value int) bool + func (a *SortedIntArray) RemoveValues(values ...int) + func (a *SortedIntArray) Search(value int) (index int) + func (a *SortedIntArray) SetArray(array []int) *SortedIntArray + func (a *SortedIntArray) SetUnique(unique bool) *SortedIntArray + func (a *SortedIntArray) Slice() []int + func (a *SortedIntArray) Sort() *SortedIntArray + func (a *SortedIntArray) String() string + func (a *SortedIntArray) SubSlice(offset int, length ...int) []int + func (a *SortedIntArray) Sum() (sum int) + func (a *SortedIntArray) Unique() *SortedIntArray + func (a *SortedIntArray) UnmarshalJSON(b []byte) error + func (a *SortedIntArray) UnmarshalValue(value interface{}) (err error) + func (a *SortedIntArray) Walk(f func(value int) int) *SortedIntArray + func (a SortedIntArray) MarshalJSON() ([]byte, error) + type SortedStrArray struct + func NewSortedStrArray(safe ...bool) *SortedStrArray + func NewSortedStrArrayComparator(comparator func(a, b string) int, safe ...bool) *SortedStrArray + func NewSortedStrArrayFrom(array []string, safe ...bool) *SortedStrArray + func NewSortedStrArrayFromCopy(array []string, safe ...bool) *SortedStrArray + func NewSortedStrArraySize(cap int, safe ...bool) *SortedStrArray + func (a *SortedStrArray) Add(values ...string) *SortedStrArray + func (a *SortedStrArray) Append(values ...string) *SortedStrArray + func (a *SortedStrArray) At(index int) (value string) + func (a *SortedStrArray) Chunk(size int) [][]string + func (a *SortedStrArray) Clear() *SortedStrArray + func (a *SortedStrArray) Clone() (newArray *SortedStrArray) + func (a *SortedStrArray) Contains(value string) bool + func (a *SortedStrArray) ContainsI(value string) bool + func (a *SortedStrArray) CountValues() map[string]int + func (a *SortedStrArray) DeepCopy() interface{} + func (a *SortedStrArray) Filter(filter func(index int, value string) bool) *SortedStrArray + func (a *SortedStrArray) FilterEmpty() *SortedStrArray + func (a *SortedStrArray) Get(index int) (value string, found bool) + func (a *SortedStrArray) Interfaces() []interface{} + func (a *SortedStrArray) IsEmpty() bool + func (a *SortedStrArray) Iterator(f func(k int, v string) bool) + func (a *SortedStrArray) IteratorAsc(f func(k int, v string) bool) + func (a *SortedStrArray) IteratorDesc(f func(k int, v string) bool) + func (a *SortedStrArray) Join(glue string) string + func (a *SortedStrArray) Len() int + func (a *SortedStrArray) LockFunc(f func(array []string)) *SortedStrArray + func (a *SortedStrArray) Merge(array interface{}) *SortedStrArray + func (a *SortedStrArray) PopLeft() (value string, found bool) + func (a *SortedStrArray) PopLefts(size int) []string + func (a *SortedStrArray) PopRand() (value string, found bool) + func (a *SortedStrArray) PopRands(size int) []string + func (a *SortedStrArray) PopRight() (value string, found bool) + func (a *SortedStrArray) PopRights(size int) []string + func (a *SortedStrArray) RLockFunc(f func(array []string)) *SortedStrArray + func (a *SortedStrArray) Rand() (value string, found bool) + func (a *SortedStrArray) Rands(size int) []string + func (a *SortedStrArray) Range(start int, end ...int) []string + func (a *SortedStrArray) Remove(index int) (value string, found bool) + func (a *SortedStrArray) RemoveValue(value string) bool + func (a *SortedStrArray) RemoveValues(values ...string) + func (a *SortedStrArray) Search(value string) (index int) + func (a *SortedStrArray) SetArray(array []string) *SortedStrArray + func (a *SortedStrArray) SetUnique(unique bool) *SortedStrArray + func (a *SortedStrArray) Slice() []string + func (a *SortedStrArray) Sort() *SortedStrArray + func (a *SortedStrArray) String() string + func (a *SortedStrArray) SubSlice(offset int, length ...int) []string + func (a *SortedStrArray) Sum() (sum int) + func (a *SortedStrArray) Unique() *SortedStrArray + func (a *SortedStrArray) UnmarshalJSON(b []byte) error + func (a *SortedStrArray) UnmarshalValue(value interface{}) (err error) + func (a *SortedStrArray) Walk(f func(value string) string) *SortedStrArray + func (a SortedStrArray) MarshalJSON() ([]byte, error) + type StrArray struct + func NewStrArray(safe ...bool) *StrArray + func NewStrArrayFrom(array []string, safe ...bool) *StrArray + func NewStrArrayFromCopy(array []string, safe ...bool) *StrArray + func NewStrArraySize(size int, cap int, safe ...bool) *StrArray + func (a *StrArray) Append(value ...string) *StrArray + func (a *StrArray) At(index int) (value string) + func (a *StrArray) Chunk(size int) [][]string + func (a *StrArray) Clear() *StrArray + func (a *StrArray) Clone() (newArray *StrArray) + func (a *StrArray) Contains(value string) bool + func (a *StrArray) ContainsI(value string) bool + func (a *StrArray) CountValues() map[string]int + func (a *StrArray) DeepCopy() interface{} + func (a *StrArray) Fill(startIndex int, num int, value string) error + func (a *StrArray) Filter(filter func(index int, value string) bool) *StrArray + func (a *StrArray) FilterEmpty() *StrArray + func (a *StrArray) Get(index int) (value string, found bool) + func (a *StrArray) InsertAfter(index int, values ...string) error + func (a *StrArray) InsertBefore(index int, values ...string) error + func (a *StrArray) Interfaces() []interface{} + func (a *StrArray) IsEmpty() bool + func (a *StrArray) Iterator(f func(k int, v string) bool) + func (a *StrArray) IteratorAsc(f func(k int, v string) bool) + func (a *StrArray) IteratorDesc(f func(k int, v string) bool) + func (a *StrArray) Join(glue string) string + func (a *StrArray) Len() int + func (a *StrArray) LockFunc(f func(array []string)) *StrArray + func (a *StrArray) Merge(array interface{}) *StrArray + func (a *StrArray) Pad(size int, value string) *StrArray + func (a *StrArray) PopLeft() (value string, found bool) + func (a *StrArray) PopLefts(size int) []string + func (a *StrArray) PopRand() (value string, found bool) + func (a *StrArray) PopRands(size int) []string + func (a *StrArray) PopRight() (value string, found bool) + func (a *StrArray) PopRights(size int) []string + func (a *StrArray) PushLeft(value ...string) *StrArray + func (a *StrArray) PushRight(value ...string) *StrArray + func (a *StrArray) RLockFunc(f func(array []string)) *StrArray + func (a *StrArray) Rand() (value string, found bool) + func (a *StrArray) Rands(size int) []string + func (a *StrArray) Range(start int, end ...int) []string + func (a *StrArray) Remove(index int) (value string, found bool) + func (a *StrArray) RemoveValue(value string) bool + func (a *StrArray) RemoveValues(values ...string) + func (a *StrArray) Replace(array []string) *StrArray + func (a *StrArray) Reverse() *StrArray + func (a *StrArray) Search(value string) int + func (a *StrArray) Set(index int, value string) error + func (a *StrArray) SetArray(array []string) *StrArray + func (a *StrArray) Shuffle() *StrArray + func (a *StrArray) Slice() []string + func (a *StrArray) Sort(reverse ...bool) *StrArray + func (a *StrArray) SortFunc(less func(v1, v2 string) bool) *StrArray + func (a *StrArray) String() string + func (a *StrArray) SubSlice(offset int, length ...int) []string + func (a *StrArray) Sum() (sum int) + func (a *StrArray) Unique() *StrArray + func (a *StrArray) UnmarshalJSON(b []byte) error + func (a *StrArray) UnmarshalValue(value interface{}) error + func (a *StrArray) Walk(f func(value string) string) *StrArray + func (a StrArray) MarshalJSON() ([]byte, error)