mirror of
https://github.com/kataras/iris.git
synced 2025-01-26 03:56:34 +01:00
2786ca1960
Former-commit-id: cd66c00b29c903b724763cb84cae96426934acb5
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!"
|
|
}
|