controller的逻辑:
我们看下面的代码,就知道怎么传值的:
import (
"github.com/astaxie/beego"
) type MainController struct {
beego.Controller
} func (this *MainController) Get() {
this.Data["Website"] = "beego.me"
this.Data["Email"] = "[email protected]"
this.TplName = "index.tpl"
}