func Output(content []byte, ctx *X.Context) (err error) { ctx.Code = http.StatusOK switch ctx.Format { case `xml`: return OutputXML(content, ctx) case `json`: return OutputJSON(content, ctx) default: return OutputHTML(content, ctx) } }