Skip to content

EasyConceptGo language basics

What is the difference between an array and a slice?

What a good answer covers

An array has a fixed length that is part of its type and is copied by value. A slice is a small descriptor (pointer, length, capacity) over an underlying array and can grow with append.

More on Go language basics

Flashcards for this topic