go lang interation stack overflow
package main
import (
"fmt"
)
func main() {
// Create a slice with some initial values
slice := []int{1, 2, 3, 4, 5}
// Iterate over the slice using a for loop
for index, value := range slice {
// Print the index and value at the current iteration
fmt.Printf("Index: %d, Value: %d\n", index, value)
}
}