gronx是从adhocore / cron-expr移植的Golang cron表达式解析器。-Golang开发

时间:2021-05-26 17:52:33
【文件属性】:
文件名称:gronx是从adhocore / cron-expr移植的Golang cron表达式解析器。-Golang开发
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-26 17:52:33
Golang Job Scheduler 适用于Golang的轻量级,快速且无依赖的Cron表达式解析器(已通过v1.14及更高版本测试)adhocore / gronx gronx是从adhocore / cron-expr移植的Golang cron表达式解析器。 零依赖性。 速度非常快,因为它会在段不匹配的情况下尽早解救。 安装go get -u github.com/adhocore/gronx用法import(“ time”“ github.com/adhocore/gronx”)gron:= gronx.New()expr:=“ * * * * *” //检查是否expr甚至有效,返回bool gron.IsValid(expr)// true //检查expr是否到期当前时间,返回bool和错误gron.IsDue(expr)// true | false,n
【文件预览】:
gronx-main
----.gitignore(45B)
----README.md(8KB)
----gronx_test.go(6KB)
----CHANGELOG.md(5KB)
----.github()
--------workflows()
--------CODEOWNERS(18B)
--------FUNDING.yml(35B)
----pkg()
--------tasker()
----test()
--------taskfile.txt(487B)
----checker.go(2KB)
----LICENSE(1KB)
----go.mod(42B)
----gronx.go(2KB)
----validator.go(3KB)
----.editorconfig(188B)
----VERSION(7B)
----cmd()
--------tasker()

网友评论