mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
8cd07719a6
Former-commit-id: 70f8619440497d132362da86c5187bcc57f8687b
13 lines
215 B
Go
13 lines
215 B
Go
package controllers
|
|
|
|
// Index is our index example controller.
|
|
type Index struct {
|
|
Controller
|
|
}
|
|
|
|
func (c *Index) Get() {
|
|
c.Tmpl = "index.html"
|
|
c.Data["title"] = "Index page"
|
|
c.Data["message"] = "Hello world!"
|
|
}
|