测试定时器

This commit is contained in:
ZJY 2021-09-07 00:44:31 +08:00
parent e3183a7481
commit 7095d799d4

View File

@ -10,7 +10,7 @@ func intiSky() {
log.Println("Starting...")
c := cron.New() // 新建一个定时任务对象
c.AddFunc("0 43 0/12 * * *", func() {
c.AddFunc("0 47 0/12 * * *", func() {
log.Println("hello world")
}) // 给对象增加定时任务
c.Start()