Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
Listen starts a goroutine to listen for OS signals such as os.Interrupt, syscall.SIGTERM, syscall.SIGHUP, and syscall.SIGQUIT. When any of these signals is received, it invokes the provided function fn with the received signal as an argument. If fn is nil, no action is taken when a signal is received.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.