Split/Slice an Array into chunks (golang)

Updated: Jul 22

Below code talks more :)

Above code split an array into multiple chunks based on the chunk size.

Why can't i use math.Min ?

Because golang Math function mainly supports float64 instead of int and one more disadvantage of golang is not having support of generics

Looks like go is getting support of generics in go 2.0.


19 views0 comments

Recent Posts

See All
WhatsApp Image 2021-07-27 at 12.31_edited.jpg

Vasu Jinagam