In Go, an array is a homogeneous data structure (Fix type) and has a fixed-length. The type can be anything like integers, string or self-defined type.
The items in the array can be accessed through their index, It starts with zero. The number of items in the array is called the length or size of an array. It is fixed and must be declared in the declaration of an array variable.
Go Array Example
Element = 10 Element = 11 Element = 12 Element = 13 Element = 14
Go Multi Dimensional Arrays
Multi dimensional arrays is simply a list of one-dimensional arrays.
Initializing Two-Dimensional Arrays
Accessing Two-Dimensional Arrays
Go Multi-Dimensional Array Example
123 456 789