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})) }