You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Run this program http://play.golang.org/p/CL9yMyhXA_
2. The defer fmt.Println is never executed
3. Why? The spec says that defer will be executed at the end of the function.
What is the expected output? What do you see instead?
The behavior is good, but the documentation should mention this case.
runtimer.Goexit() which could have a similar behavior specifies that it calls all the
deferred calls. We should tell that os.Exit doesn't call them.
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: