Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chunk ¶
func Chunk[K comparable](slice []K, batchSize int) [][]K
Chunk - create batches of an arbitrary typed slice into the given batch size
func PickField ¶
func PickField[K interface{}, V comparable](iterator []K, returner func(K) V) (result []V)
PickField - pick the value of a particular field from a slice into it's own slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.