iris/_examples/view/templ/main.go
2023-12-13 02:18:16 +02:00

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")
}