Check out example codes for "interface to array golang". It will help you in understanding the concepts better.
Code Example 1
func test(t interface{}) {
switch reflect.TypeOf(t).Kind() {
case reflect.Slice:
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
fmt.Println(s.Index(i))
}
}
}
Learn ReactJs, React Native from akashmittal.com