1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2024-12-27 09:06:30 +00:00
talks/2013/03-golang-learning-lunch/13-blank-var/main.go

15 lines
226 B
Go
Raw Permalink Normal View History

2016-12-05 15:44:45 +00:00
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
}