Files
  • main.go
main.go
1
2
3
4
5
6
7
8
9
10
11
12
package main

import "fmt"

func main() {
	// :show start
	a := []int{3, 15, 8}
	for idx, el := range a {
		fmt.Printf("idx: %d, element: %d\n", idx, el)
	}
	// :show end
}
go version go1.9.4 linux/amd64