package
Version:
v2.6.1
Opens a new window with list of versions in this module.
Published: Aug 30, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Chunk[T any](slice []T, chunkSize int) [][]T
Chunk helps chunk a slice into equal size
type Item[T any] struct {
Index int
Value T
}
Item represents the slice item
Slice type that can be safely shared between goroutines.
New creates a new synchronized slice.
func (cs *Slice[T]) Append(item T)
Append adds an item to the concurrent slice.
Delete an item from the slice
Get returns the slice item at the given index
Items returns the list of items
Len returns the number of items
func (cs *Slice[T]) Reset()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.