iris/_examples/view/quicktemplate/main.go
Gerasimos (Makis) Maropoulos ed45c77be5 reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00

23 lines
397 B
Go

package main
import (
"github.com/kataras/iris/v12/_examples/response-writer/quicktemplate/controllers"
"github.com/kataras/iris/v12"
)
func newApp() *iris.Application {
app := iris.New()
app.Get("/", controllers.Index)
app.Get("/{name}", controllers.Hello)
return app
}
func main() {
app := newApp()
// http://localhost:8080
// http://localhost:8080/yourname
app.Listen(":8080")
}