cron
cron copied to clipboard
Add support for future one-off jobs
trafficstars
I am thinking that this is to allow pass in an ISO Date Time (with TZ) which gets parsed and used as a one off event. I am requesting more for https://github.com/mcuadros/ofelia/issues/177 but if it can be done in this module then it can offload the work away from Ofelia
@trajano I made a fork that addresses almost all issues of this repo. https://github.com/alaingilbert/cron
This is how you could do what you want to do ->
_, _ = c.AddJob("* * * * * *", cron.Once(func() {
fmt.Println("Will only be executed once")
}))