mirror of
https://github.com/kataras/iris.git
synced 2025-03-20 10:26:25 +01:00
19 lines
276 B
Go
19 lines
276 B
Go
// +build go1.9
|
|
|
|
package controllers
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
)
|
|
|
|
// Index is our index example controller.
|
|
type Index struct {
|
|
iris.Controller
|
|
}
|
|
|
|
func (c *Index) Get() {
|
|
c.Tmpl = "index.html"
|
|
c.Data["title"] = "Index page"
|
|
c.Data["message"] = "Hello world!"
|
|
}
|