From cbd1420330ee6ff308e1073929e1a97123aa85e4 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 27 May 2025 09:33:44 +0200 Subject: [PATCH] deprecate slicetools.Chunks (suggest slices.Chunk from stdlib) --- slicetools/chunk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/slicetools/chunk.go b/slicetools/chunk.go index 20e5c12..17a83ed 100644 --- a/slicetools/chunk.go +++ b/slicetools/chunk.go @@ -1,6 +1,7 @@ package slicetools // Chunks splits a slice into chunks of the given size. +// Deprecated: Use slices.Chunk instead. func Chunks[T any](items []T, chunkSize int) [][]T { // optimization for small slices if len(items) <= chunkSize {