示例#1
0
文件: gourl.go 项目: hernan43/gourl
func printError(ctx *web.Context, error string) {
	/*this is a 500 error condition*/
	ctx.StartResponse(500)
	/*print boilerplate error page with passed in message*/
	ctx.WriteString(mustache.RenderFile("error.mustache", map[string]string{"error": error}))
}