arrays/arrays.go
func Slice(arr []byte, count int) [][]byte {

	sliceCount := len(arr) / count
	result := make([][]byte, sliceCount)

	for i := 0; i < sliceCount; i++ {
		start := i * count
		end := i*count + count

		result[i] = arr[start:end]
	}

	return result
}
func Slice(arr []byte, count int) [][]byte {

	sliceCount := len(arr) / count
	result := make([][]byte, sliceCount)

	for i := 0; i < sliceCount; i++ {
		start := i * count
		end := i*count + count

		result[i] = arr[start:end]
	}

	return result
}
func Slice ( arr [ ] byte , count int ) [ ] [ ] byte { sliceCount := len ( arr ) / count result := make ( [ ] [ ] byte , sliceCount ) for i := 0 ; i < sliceCount ; i ++ { start := i * count end := i * count + count result [ i ] = arr [ start : end ] } return result }
// Slice is splitting input byte array into slice of subarrays. Each of count length.
Slice is splitting input byte array into slice of subarrays . Each of count length .