Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2021 v1.0.0 May 31, 2021 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 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) 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) Fill(startIndex int, num int, value interface{}) *Array + func (a *Array) Get(index int) interface{} + func (a *Array) InsertAfter(index int, value interface{}) *Array + func (a *Array) InsertBefore(index int, value interface{}) *Array + func (a *Array) Join(glue string) string + func (a *Array) Len() int + func (a *Array) LockFunc(f func(array []interface{})) *Array + func (a *Array) MarshalJSON() ([]byte, error) + func (a *Array) Merge(array interface{}) *Array + func (a *Array) Pad(size int, val interface{}) *Array + func (a *Array) PopLeft() interface{} + func (a *Array) PopLefts(size int) []interface{} + func (a *Array) PopRand() interface{} + func (a *Array) PopRands(size int) []interface{} + func (a *Array) PopRight() interface{} + 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() interface{} + func (a *Array) Rands(size int) []interface{} + func (a *Array) Range(start int, end ...int) []interface{} + func (a *Array) Remove(index int) 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{}) *Array + 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 + type IntArray struct + func NewIntArray(safe ...bool) *IntArray + func NewIntArrayFrom(array []int, safe ...bool) *IntArray + func NewIntArrayFromCopy(array []int, safe ...bool) *IntArray + func NewIntArraySize(size int, cap int, safe ...bool) *IntArray + func (a *IntArray) Append(value ...int) *IntArray + 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) Fill(startIndex int, num int, value int) *IntArray + func (a *IntArray) Get(index int) int + func (a *IntArray) InsertAfter(index int, value int) *IntArray + func (a *IntArray) InsertBefore(index int, value int) *IntArray + func (a *IntArray) Join(glue string) string + func (a *IntArray) Len() int + func (a *IntArray) LockFunc(f func(array []int)) *IntArray + func (a *IntArray) MarshalJSON() ([]byte, error) + func (a *IntArray) Merge(array interface{}) *IntArray + func (a *IntArray) Pad(size int, value int) *IntArray + func (a *IntArray) PopLeft() int + func (a *IntArray) PopLefts(size int) []int + func (a *IntArray) PopRand() int + func (a *IntArray) PopRands(size int) []int + func (a *IntArray) PopRight() int + 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() int + func (a *IntArray) Rands(size int) []int + func (a *IntArray) Range(start int, end ...int) []int + func (a *IntArray) Remove(index int) 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) *IntArray + 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 + 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 NewSortedArraySize(cap int, comparator func(a, b interface{}) int, safe ...bool) *SortedArray + func (a *SortedArray) Add(values ...interface{}) *SortedArray + 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) Get(index int) interface{} + func (a *SortedArray) Join(glue string) string + func (a *SortedArray) Len() int + func (a *SortedArray) LockFunc(f func(array []interface{})) *SortedArray + func (a *SortedArray) MarshalJSON() ([]byte, error) + func (a *SortedArray) Merge(array interface{}) *SortedArray + func (a *SortedArray) PopLeft() interface{} + func (a *SortedArray) PopLefts(size int) []interface{} + func (a *SortedArray) PopRand() interface{} + func (a *SortedArray) PopRands(size int) []interface{} + func (a *SortedArray) PopRight() interface{} + func (a *SortedArray) PopRights(size int) []interface{} + func (a *SortedArray) RLockFunc(f func(array []interface{})) *SortedArray + func (a *SortedArray) Rand() interface{} + func (a *SortedArray) Rands(size int) []interface{} + func (a *SortedArray) Range(start int, end ...int) []interface{} + func (a *SortedArray) Remove(index int) interface{} + func (a *SortedArray) Search(value interface{}) (index int) + func (a *SortedArray) SetArray(array []interface{}) *SortedArray + 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 + 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 NewSortedIntArraySize(cap int, safe ...bool) *SortedIntArray + func (a *SortedIntArray) Add(values ...int) *SortedIntArray + 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) Get(index int) int + func (a *SortedIntArray) Join(glue string) string + func (a *SortedIntArray) Len() int + func (a *SortedIntArray) LockFunc(f func(array []int)) *SortedIntArray + func (a *SortedIntArray) MarshalJSON() ([]byte, error) + func (a *SortedIntArray) Merge(array interface{}) *SortedIntArray + func (a *SortedIntArray) PopLeft() int + func (a *SortedIntArray) PopLefts(size int) []int + func (a *SortedIntArray) PopRand() int + func (a *SortedIntArray) PopRands(size int) []int + func (a *SortedIntArray) PopRight() int + func (a *SortedIntArray) PopRights(size int) []int + func (a *SortedIntArray) RLockFunc(f func(array []int)) *SortedIntArray + func (a *SortedIntArray) Rand() int + func (a *SortedIntArray) Rands(size int) []int + func (a *SortedIntArray) Range(start int, end ...int) []int + func (a *SortedIntArray) Remove(index int) 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 + 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) 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) CountValues() map[string]int + func (a *SortedStrArray) Get(index int) string + func (a *SortedStrArray) Join(glue string) string + func (a *SortedStrArray) Len() int + func (a *SortedStrArray) LockFunc(f func(array []string)) *SortedStrArray + func (a *SortedStrArray) MarshalJSON() ([]byte, error) + func (a *SortedStrArray) Merge(array interface{}) *SortedStrArray + func (a *SortedStrArray) PopLeft() string + func (a *SortedStrArray) PopLefts(size int) []string + func (a *SortedStrArray) PopRand() string + func (a *SortedStrArray) PopRands(size int) []string + func (a *SortedStrArray) PopRight() string + func (a *SortedStrArray) PopRights(size int) []string + func (a *SortedStrArray) RLockFunc(f func(array []string)) *SortedStrArray + func (a *SortedStrArray) Rand() string + func (a *SortedStrArray) Rands(size int) []string + func (a *SortedStrArray) Range(start int, end ...int) []string + func (a *SortedStrArray) Remove(index int) 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 + 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) 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) CountValues() map[string]int + func (a *StrArray) Fill(startIndex int, num int, value string) *StrArray + func (a *StrArray) Get(index int) string + func (a *StrArray) InsertAfter(index int, value string) *StrArray + func (a *StrArray) InsertBefore(index int, value string) *StrArray + func (a *StrArray) Join(glue string) string + func (a *StrArray) Len() int + func (a *StrArray) LockFunc(f func(array []string)) *StrArray + func (a *StrArray) MarshalJSON() ([]byte, error) + func (a *StrArray) Merge(array interface{}) *StrArray + func (a *StrArray) Pad(size int, value string) *StrArray + func (a *StrArray) PopLeft() string + func (a *StrArray) PopLefts(size int) []string + func (a *StrArray) PopRand() string + func (a *StrArray) PopRands(size int) []string + func (a *StrArray) PopRight() string + 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() string + func (a *StrArray) Rands(size int) []string + func (a *StrArray) Range(start int, end ...int) []string + func (a *StrArray) Remove(index int) 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) *StrArray + 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