func (c *TestController) Get() { models.InitTask() //c.Data["json"] = map[string]int{"code": models.UpdateConf("php", "/lnmp/php/bin/php")} c.ServeJSON() }
func main() { go models.InitTask() beego.Run() }