作业安排变得容易。-Golang开发

时间:2021-05-26 16:08:46
【文件属性】:
文件名称:作业安排变得容易。-Golang开发
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 16:08:46
Golang Utilities 计划程序使工作计划变得容易。 计划程序使您可以使用易于理解的语法来计划循环作业。 受到文章“重新思考Cron”和schedule python模块的启发。 如何使用? 打包主计划程序使工作计划变得容易。 计划程序使您可以使用易于理解的语法来计划循环作业。 受到Rethinking Cron和schedule python模块的启发。 如何使用? 包main import(“ fmt”“ runtime”“ time”“ github.com/carlescere/scheduler”)func main(){job:= func(){t:= time.Now()fmt.Println(“时间到了!@“,t.UTC())} //每2秒运行一次,但现在不行。 scheduler.Every(2).Seconds()。NotImmediately()。Run(job)//运行
【文件预览】:
scheduler-master
----.gitignore(288B)
----.travis.yml(396B)
----LICENSE(1KB)
----scheduler.go(7KB)
----README.md(2KB)
----scheduler_test.go(8KB)

网友评论