flâneur — a map of the web's best reading

Go Slices: usage and internals - The Go Programming Language

go.dev · 1,822 words · saved by 1 readers

How to use Go slices, and how they work.

Go Slices: usage and internals - The Go Programming Language The Go Blog Go Slices: usage and internals Andrew Gerrand 5 January 2011 Introduction Go's slice type provides a convenient and efficient means of working with sequences of typed data. Slices are analogous to arrays in other languages, but have some unusual properties. This article will look at what slices are and how they are used. Arrays The slice type is an abstraction built on top of Go's array type, and so to understand slices we must first understand arrays. An array type definition specifies a length and an element type. For e

Explore this link on the map →

saved by

related reading