Package signalhandler provides an all-in-one solution for simple signal handling. It basically implements the common idiomatic was of using os/signal.