Skip to content
masterclass Buddy

Go · Concept

Slices

A Go slice is a view over an underlying array. It stores a length and capacity, can share storage with other slices, and grows with append.

Last updated

Syntax

append(s, values...)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • append
  • cap
  • copy
  • len
  • make
  • new
  • slice expressions

Source: Effective Go - The Go Programming Language. Checked 2026-11-03.