Arrays and Slices

Welcome to the part 11 of Golang tutorial series. In this tutorial, we will learn about Arrays and Slices in Go. What is an Array? An array is a collection of elements. For example, the collection of integers 5, 8, 9, 79, 76 constitute an array. Declaration An array belongs to the type [n]T. n represents the number of elements in an array and T represents the type of each element.