Looping Through Go Slice

// Program that loops over a slice using for loop

package main
import "fmt"

func main() {
  numbers := []int{2, 4, 6, 8, 10}

  // for loop that iterates through the slice
  for i := 0; i < len(numbers); i++ {
  fmt.Println(numbers[i])
  }

}
SAMER SAEID