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
Exec'ing Processes
Signals
# Exit
Exit
# HTTP Client
# HTTPS Client
# Redis

View File

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