ziter

package
v0.12.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValueNotSlice = errors.New("value is not a slice")
)

Functions

func ChunkifyIterator

func ChunkifyIterator[T any](iterator Iterator[T], size int, handler ChunkHandler[T]) (err error)

func InterfaceToSlice

func InterfaceToSlice(input interface{}) (slice []interface{}, err error)

Convert interface{} into []interface{} if the input is a slice, otherwise, return an error.

func SliceChunks

func SliceChunks[T any](items []T, size int, handler ChunkHandler[T]) (err error)

Break a slice into multiple slices of the provided size

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL