func main() {
defer fmt.Println("Hello, World!")
fmt.Println("Hello")
}
The deferred call’s arguments are evaluated immediately, but the function call is not executed until the surrounding function returns.
Defer works as a stack, deferred calls are executed in last-in-first-out order.
Next chapter: Errors