Slices and Maps in Go
Arrays in Go
Arrays are fixed-size groups of variables of the same type.
For example, [4]string is an array of 4 values of type string.
To declare an array of 10 integers:
var myInts [10]int
primes := [6]int{2, 3, 5, 7, 11, 13} // or to de...
go-lang.hashnode.dev16 min read