Graceful Shutdown

app := clevergo.New()
// app.ShutdownTimeout = 5*time.Second
// app.ShutdownSignals = []os.Signal{os.Interrupt, syscall.SIGINT, syscall.SIGTERM} 
app.Run(":8080")

Checkout example for details.

comments powered by Disqus