func report_inverter(r *restful.Request, w *restful.Response) { sd := r.QueryParameter("sd") // startdate, "day/month/year" res := resultType{"x", sd} w.WriteAsJson(res) }