Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/f2prateek/cron

Cron library for Go.
https://github.com/f2prateek/cron

Last synced: about 1 month ago
JSON representation

Cron library for Go.

Awesome Lists containing this project

README

        

cron
====

Cron library for golang.

Usage
=====
```go
// Create a ticker.
ticker := cron.Must(cron.Parse("0/5 * * * * * *"))

// Wait for a tick. Run inside in a loop if you want to wait repeatedly.
t := <-ticker.C

// Do some work.
doWork()

// Stop the ticker.
t.Stop()
```