1 Star 0 Fork 21

wangyfbe / go-admin-core

forked from go-admin-team / go-admin-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gadmjob.go 375 Bytes
一键复制 编辑 原始数据 按行查看 历史
lwnmengjing 提交于 2021-06-10 17:07 . feature :sparkles:支持config加载闭包
package cronjob
import (
"github.com/robfig/cron/v3"
)
// NewWithSeconds newWithSeconds returns a Cron with the seconds field enabled.
func NewWithSeconds() *cron.Cron {
secondParser := cron.NewParser(cron.Second | cron.Minute |
cron.Hour | cron.Dom | cron.Month | cron.DowOptional | cron.Descriptor)
return cron.New(cron.WithParser(secondParser), cron.WithChain())
}
Go
1
https://gitee.com/wangyfbe/go-admin-core.git
git@gitee.com:wangyfbe/go-admin-core.git
wangyfbe
go-admin-core
go-admin-core
sdk/v1.10.3

搜索帮助