add comment for source code

This commit is contained in:
wy65701436 2017-04-11 00:30:36 -07:00
parent a1c20dd666
commit 1bbe14fc9e

View File

@ -4,10 +4,12 @@ import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
) )
// ErrorController handles beego error pages
type ErrorController struct { type ErrorController struct {
beego.Controller beego.Controller
} }
// Error404 renders the 404 page
func (ec *ErrorController) Error404() { func (ec *ErrorController) Error404() {
ec.Data["content"] = "page not found" ec.Data["content"] = "page not found"
ec.TplName = "404.tpl" ec.TplName = "404.tpl"