1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2024-11-15 21:28:36 +00:00
talks/2013/03-golang-learning-lunch/11-defer/main.go

12 lines
158 B
Go

package main
import "fmt"
func main() {
// START OMIT
for i := 0; i < 5; i++ {
defer fmt.Printf("%d ", i)
}
fmt.Println("HOOTY HOO!")
// STOP OMIT
}