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.
SubscribeRelated
appendcapcopylenmakenewslice expressions