Go (Golang) Slices Tutorial

preview_player
Показать описание
In this episode we are going to look at Slices and Arrays in Go and some of the most useful things to know about how to operate with slices and arrays in Go. We are also going to see how the internal append, make and copy functions work under the hood and how can be implemented relatively easy. We are going to explore the slice slicing operator in Go and how that can also make our slices share the same underlying array pointers causing side-effects. Go Slices are a very common data structure and are known as array in other programming languages, as they are a dynamic set of typed elements. Arrays in Go on the other ends are quite inflexible, but provide the building blocks for slices and other more complex types and data structures.

Рекомендации по теме
Комментарии
Автор

Nicely explained, tnx. Slices/arrays are basis in gonum library, of which in-depth tutorials are lacking greatly in golang community, pls do some if possible 🙏

smjure
visit shbcf.ru