package main import ( "github.com/kataras/iris" ) func main() { app := iris.New() // [...] // Good when you have two configurations, one for development and a different one for production use. app.Run(iris.Addr(":8080"), iris.WithConfiguration(iris.YAML("./configs/iris.yml"))) // or before run: // app.Configure(iris.WithConfiguration(iris.YAML("./configs/iris.yml"))) // app.Run(iris.Addr(":8080")) }