Skip to content

Glossary: Go Basics

Slice

Also written: slices, []T

An ordered list of values of one type, indexed from 0 and grown with `append`. `s[1:3]` makes a new view onto the same array.

Where the book teaches it

Related terms

appendrangenil slice