func (this *EventController) Events() { time, _ := strconv.Atoi(this.Ctx.Input.Param(":time")) t := models.Event{} ts := t.GetAfter(time) response := EventResponse{ts} b, _ := json.Marshal(&response) this.Data["json"] = string(b) this.ServeJson() }