Daftar Loop Golang

a := []string{"Foo", "Bar"}
for i, s := range a {
    fmt.Println(i, s)
}
Bored Badger