Documentation ¶
Overview ¶
Package exit allows to register callbacks which are called on program exit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exit ¶
func Exit(code int)
Exit terminates the application via os.Exit but waits for all exit handlers to complete before calling os.Exit.
func Fatal ¶
func Fatal(v ...interface{})
Fatal is a replacement for log.Fatal which will trigger the closure of all registered exit handlers and waits for their completion and then call os.Exit(1).
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf is a replacement for log.Fatalf and behaves like Fatal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.