github.com/Graphmasters/safedown (go): Package safedown provides a graceful way to shutdown an application even when an interrupt signal is received.  Example_withShutDown demonstrates how to use the Shutdown method can be used.   Example_withSignalReceived demonstrates how setting up the safedown's shutdown actions works when a signal is received.   Example_withoutSignalReceived demonstrates how setting up the safedown's shutdown actions works when no signal is received (and the program can terminate of its own accord).
Keywords: go-module