var listenAddr … var timeout … var configFilePath … func main() { … } // withShutdownSignal returns a copy of the parent context that will close if // the process receives termination signals. func withShutdownSignal(ctx context.Context) context.Context { … }