publish exit

This commit is contained in:
Mark McGranaghan 2012-10-11 18:47:41 -07:00
parent 8116d5abe3
commit 149fa796c5
2 changed files with 2 additions and 3 deletions

View File

@ -67,7 +67,7 @@ Environment Variables
Spawning Processes Spawning Processes
Exec'ing Processes Exec'ing Processes
Signals Signals
# Exit Exit
# HTTP Client # HTTP Client
# HTTPS Client # HTTPS Client
# Redis # Redis

View File

@ -6,6 +6,7 @@ package main
import "os" import "os"
func main() { func main() {
// `defer`s will _not_ be run when using `os.Exit`, so // `defer`s will _not_ be run when using `os.Exit`, so
// this `println` will never be called. // this `println` will never be called.
defer println("!") defer println("!")
@ -18,5 +19,3 @@ func main() {
// return value from `main` to indicate exit status. If // return value from `main` to indicate exit status. If
// you'd like to exit with a non-zero status you should // you'd like to exit with a non-zero status you should
// use `os.Exit`. // use `os.Exit`.
// todo: discuss building before getting here