Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Defer ¶
func Defer(f func())
Defer will register the given function to be run upon program termination
func Go ¶ added in v1.0.4
func Go(funcs ...func() error)
Go runs function(s) f in background, and if any of those functions return an error, it'll be handled as a fatal error and cause shutdown to trigger as if Fatalf was called
func SetupSignals ¶
func SetupSignals()
SetupSignals will listen for interruptions (Ctrl-C or kill), and trigger a shutdown if a signal is received. If a second signal is sent (shutdown is taking too long), this will call os.Exit(1)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.