publish exit
This commit is contained in:
parent
8116d5abe3
commit
149fa796c5
@ -67,7 +67,7 @@ Environment Variables
|
||||
Spawning Processes
|
||||
Exec'ing Processes
|
||||
Signals
|
||||
# Exit
|
||||
Exit
|
||||
# HTTP Client
|
||||
# HTTPS Client
|
||||
# Redis
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user