Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenOSInterrupt ¶
func ListenOSInterrupt(callback func())
ListenOSInterrupt listens for OS interrupt signals and calls callback on receive. It should be called in a separate goroutine from the main program as it blocks the execution until a signal is received.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.