top of page
Writer's picturejinagamvasubabu

Split/Slice an Array into chunks (golang)

Updated: Jul 22, 2021

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.




2,259 views0 comments

Recent Posts

See All

Comentários


DSC_0719_edited.jpg

Vasu Jinagam

Hi 👋 , Myself Vasu Jinagam from Bengaluru India and I am currently working at slice as an Engineering Manager.

 

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

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

bottom of page