publish exit
This commit is contained in:
parent
8116d5abe3
commit
149fa796c5
@ -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
|
||||||
|
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user