defer func() {
fmt.Println(“Hello,world”)
}()
defer func(i int) {
fmt.Println(“%d”,i)
}(i)
defer func(i int) {
fmt.Println(“%d”,i)
}(0)
可以看成
```
func aa() {
fmt.Println("Hello,world")
}
func main() {
defer aa()
}
```
#1