Using Arrays and Slices

Learn about arrays and slices and their functionality in Go.

Introduction

Languages require more than the basic types to hold data. The array type is one of the core building blocks in lower-level languages, providing the base sequential data type. For most day-to-day use, Go's slice type provides a flexible array that can grow as data needs grow and can be sliced into sections in order to share views of the data.

Get hands-on with 1400+ tech skills courses.