The package signal
provides signal handlers and allows our Go program to interact with the incoming signals. Let’s start with the listeners before diving into the internals.
https://medium.com/a-journey-with-go/go-gsignal-master-of-signals-329f7ff39391