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.


52 views0 comments

Recent Posts

See All

Vasu Jinagam

Hi Myself Vasu Jinagam from Bengaluru India and I am a senior product Engineer at SIXT.


HangoutDude is a No Nonsense Tech and story blog and I mainly talk about Golang, Java, Distributed Microservices, Opensource and Cloud computing

You can reach out to me @ jinagamvasubabu@gmail.com