Documentation ¶
Overview ¶
Package shutdown allows specifying functions to run before application exits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitWithCode ¶
func ExitWithCode(code int)
ExitWithCode runs shutdown functions and exits with specified code.
func Fatal ¶
func Fatal(v ...interface{})
Fatal is the equivalent of fmt.Fatal but runs shutdown functions first.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.