package controllers type ErrorController struct { BaseController } func (this *ErrorController) Error404() { this.SetTpl("error/404.html") }