Registry / utility / robfig-cron

robfig-cron

JSON →
library1.2.0gogounverified

Package cron implements a cron spec parser and job runner for scheduling periodic tasks in Go.

go get github.com/robfig/cron
INSTALL
IMPORT
SIG · ROBFIG-CRON
R
robfig-cron
utilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cron
github.com/robfig/cron

Creates a cron scheduler that runs a task every second

package main import ( "fmt" "github.com/robfig/cron" ) func main() { c := cron.New() c.AddFunc("@every 1s", func() { fmt.Println("tick") }) c.Start() select {} }
Debug
Known issues
breakingv3 uses a different import path (github.com/robfig/cron/v3) and has breaking API changes
fix
Use import path github.com/robfig/cron/v3 for the latest version
affects: <3.0.0
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
robfig-cron — go get robfig-cron · libregistry