mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
19 lines
416 B
Go
19 lines
416 B
Go
|
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"))
|
||
|
}
|