for loop golang range code example
Example: golang range arrat
for i, num := range nums {
if num == 3 {
fmt.Println("index:", i)
}
}
for i, num := range nums {
if num == 3 {
fmt.Println("index:", i)
}
}