1 Star 0 Fork 0

崔俊 / iris_v1111

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
home_controller.go 594 Bytes
一键复制 编辑 原始数据 按行查看 历史
崔俊 提交于 2024-03-11 14:05 . first commit
package controllers
import "github.com/kataras/iris/mvc"
type HomeController struct{}
func (c *HomeController) Get() mvc.Result {
return mvc.View{Name: "index.html"}
}
func (c *HomeController) GetAbout() mvc.Result {
return mvc.View{
Name: "about.html",
Data: map[string]interface{}{
"Title": "About Page",
"Message": "Your application description page."},
}
}
func (c *HomeController) GetContact() mvc.Result {
return mvc.View{
Name: "contact.html",
Data: map[string]interface{}{
"Title": "Contact Page",
"Message": "Your application description page."},
}
}
1
https://gitee.com/cuijun/iris_v1111.git
git@gitee.com:cuijun/iris_v1111.git
cuijun
iris_v1111
iris_v1111
1a5f2c173b4a

搜索帮助