Arrays in Go have a fixed sized. They can’t grow.

Because of that arrays in Go are rarely used. Instead slices are used in most cases.

Zero value of array is an array where all values have zero value.

Elements of arrays are laid out in memory consecutively, which is good for speed.

Arrays are passed by value which means that passing an array argument to a function copies the whole array. This is slow if the array is large.

Array basics:

https://codeeval.dev/gist/6d9409619a714a5077a2ce46b83b8b4d

Create array

Array indexes

Multidimensional array