mirror of
https://github.com/datarhei/core.git
synced 2025-09-27 12:22:28 +08:00
16 lines
213 B
Go
16 lines
213 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
)
|
|
|
|
func main() {
|
|
// Wait for interrupt signal to gracefully shutdown the app
|
|
quit := make(chan os.Signal, 1)
|
|
signal.Notify(quit, os.Interrupt)
|
|
<-quit
|
|
|
|
os.Exit(255)
|
|
}
|