package main import ( "github.com/kataras/iris/v12" ) func main() { app := iris.New() app.ConfigureHost(func(host *iris.Supervisor) { // <- HERE: IMPORTANT // You can control the flow or defer something using some of the host's methods: // host.RegisterOnError // host.RegisterOnServe host.RegisterOnShutdown(func() { app.Logger().Infof("Application shutdown on signal") }) }) app.Get("/", func(ctx iris.Context) { ctx.HTML("