mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
20 lines
328 B
Go
20 lines
328 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"app/config"
|
|
|
|
"github.com/kataras/iris/v12"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
app.Get("/", func(ctx iris.Context) {
|
|
ctx.TextYAML(config.C)
|
|
})
|
|
|
|
addr := fmt.Sprintf("%s:%d", config.C.Addr.Internal.IP, config.C.Addr.Internal.Plain)
|
|
app.Listen(addr, iris.WithConfiguration(config.C.Iris))
|
|
}
|