func (this *ClubController) Clubs() { time, _ := strconv.Atoi(this.Ctx.Input.Param(":time")) c := models.Club{} clubs := c.GetByTime(time) response := Response{clubs} b, _ := json.Marshal(&response) this.Data["json"] = string(b) this.ServeJson() }