Arrays are the most popular data structure due to their speed and are supported by almost all programming languages. You can declare an array in Go as follows:
myArray := [4]int{1, 2, 4, -4}
Should you wish to declare an array with two or three dimensions, you can use the following notation:
twoD := [3][3]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}
threeD := [2][2][2]int{{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}
The index of the first...