Session

Fun with Slices

Slices can be seen in almost every Go program, but many developers are still unware of how they exactly work.

On the surface we might think they are simple constructs that allows us to handle multiple elements of a single type, but they are more than just a collection.

Specially for people new to Go, slices can be a source of pain because of the behaviors it possess that you wouldn't expect from a traditional dynamic array or list.

In this session we are going to do a deep dive on the slice type, starting from arrays and slice declaration syntax, slicing operations, copying, resizing and its surprising (or not) side effects.

The session will be composed most of code examples using the playground, with an eventual dive into the compiler source code to see the relevant bits of slice implementation.

Daniela Petruzalek

Executive Director at JPMC | Google Developer Expert

London, United Kingdom

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top