mirror of
https://github.com/kataras/iris.git
synced 2025-02-15 13:36:20 +01:00
19 lines
279 B
Go
19 lines
279 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12"
|
|
)
|
|
|
|
// 1.
|
|
// $ go install github.com/a-h/templ/cmd/templ@latest
|
|
// $ templ generate
|
|
// $ go run .
|
|
func main() {
|
|
component := hello("Makis")
|
|
|
|
app := iris.New()
|
|
app.Get("/", iris.Component(component))
|
|
|
|
app.Listen(":8080")
|
|
}
|