Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExitCallback ¶
func RegisterExitCallback(f ExitHandler)
adds exit callback, callbacks will be executed before exit Notice: Can catch kill / killall / Hangup(close terminal) Can't catch os.Exit, main() return and exception panic crash
func WaitExitSignal ¶
func WaitExitSignal()
Types ¶
type ExitHandler ¶
Click to show internal directories.
Click to hide internal directories.