Skip to content

Commit cbd1420

Browse files
committed
deprecate slicetools.Chunks (suggest slices.Chunk from stdlib)
1 parent deee40c commit cbd1420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

slicetools/chunk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package slicetools
22

33
// Chunks splits a slice into chunks of the given size.
4+
// Deprecated: Use slices.Chunk instead.
45
func Chunks[T any](items []T, chunkSize int) [][]T {
56
// optimization for small slices
67
if len(items) <= chunkSize {

0 commit comments

Comments
 (0)