Documentation ¶ Overview ¶ Package signal handles terminating applications on Ctrl+Break. Index ¶ func New() (waitForFunc func(), terminateFunc func()) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() (waitForFunc func(), terminateFunc func()) New waits for a manual termination or a user initiated termination IE: Ctrl+Break. waitForFunc() will wait indefinitely for a signal. terminateFunc() will trigger waitForFunc() to complete immediately. Types ¶ This section is empty. Source Files ¶ View all Source files signal.go Click to show internal directories. Click to hide internal directories.