Skip to content
/ cron Public
forked from robfig/cron

a cron library for go; job 方法可以传参

License

Notifications You must be signed in to change notification settings

molizz/cron

 
 

Repository files navigation

GoDoc Build Status

// 允许调用AddFunc时传额外的参数

c := cron.New()
err := c.AddFunc(item.Spec, func(e *cron.Entry) {
    fmt.Println(e.Param.(string)) // output "hello"
}, "hello")

c.Start()

About

a cron library for go; job 方法可以传参

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%