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

}