mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
18 lines
273 B
Go
18 lines
273 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/kataras/iris/v12"
|
||
|
)
|
||
|
|
||
|
// $ 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")
|
||
|
}
|