Grab a Slice on the Go

Grab a Slice on the Go

5 years ago
Anonymous $Dftgs0JzgE

https://blog.gojekengineering.com/grab-a-slice-on-the-go-c606344186c1

If you’ve used Golang, you might be familiar with the concept of arrays. In this post, we’re addressing slices. Why do slices exist when you already have arrays, you ask? We’ll talk about that, and a few more ideas, like:

To understand the importance of slices, we need to talk arrays first. If you are familiar with arrays, then go ahead and jump directly to the section on slices.