Check out example codes for "how to get the length of an array in go". It will help you in understanding the concepts better.

Code Example 1

array:=[]int {1,2,3,4}
len(array)

Learn ReactJs, React Native from akashmittal.com