``` stop := make(chan os.Signal) signal.Notify(stop, syscall.SIGINT) ctx, cancel := context.WithCancel(context.Background()) go func() { <-stop cancel() }() ```