package controllers import ( "github.com/astaxie/beego" ) type MainController struct { beego.Controller } func (c *MainController) Get() { c.Data["Website"] = "官网.地址" c.Data["Email"] = "张献维@邮箱.com" c.TplName = "index.tpl" }