range over struct golang 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)
}
}