mirror of
https://github.com/vbatts/talks.git
synced 2024-11-15 21:28:36 +00:00
14 lines
226 B
Go
14 lines
226 B
Go
package main
|
|
|
|
func main() {
|
|
// START OMIT
|
|
words := []string{"cow","goat","sheep","horse","chicken"}
|
|
for i := range words {
|
|
println(words[i])
|
|
}
|
|
for _, word := range words {
|
|
println(word)
|
|
}
|
|
// STOP OMIT
|
|
}
|
|
|