default.go 242B

12345678910111213141516
  1. package controllers
  2. import (
  3. "github.com/astaxie/beego"
  4. )
  5. type MainController struct {
  6. beego.Controller
  7. }
  8. func (c *MainController) Get() {
  9. c.Data["Website"] = "beego.me"
  10. c.Data["Email"] = "astaxie@gmail.com"
  11. c.TplName = "index.tpl"
  12. }