Schedule a database cleanup task to run automatically every night in your Go backend without a separate cron service
Trigger a report-generation function every weekday morning from within your Go application
Poll an external API on a fixed interval, such as every hour, using a time-based scheduler in Go
This v1 branch is no longer maintained and accepts no new contributions, use the v2 branch of the same repository for active support.
gocron is a job scheduling library written in Go. Job scheduling libraries let you run code automatically on a fixed schedule: for example, once every hour, at midnight each day, or on weekday mornings. This is a common requirement in backend applications that need to run cleanup tasks, send reports, pull in data from external sources, or do any other work triggered by time rather than by a user action. This repository started as a fork of an earlier open-source Go scheduling project. The description labels it as easy and fluent, which suggests it was built around an API designed to be readable and concise to write. The associated topics include cron, scheduler, clockwork, and golang-job-scheduling, all pointing to a library that follows standard time-based scheduling conventions. The README for this particular branch is extremely sparse. It contains only a single notice: the project officially moved to version 2 at a separate branch of the same GitHub repository. The version 1 branch documented here is no longer maintained, and no new contributions or pull requests are being accepted against it. No installation instructions, usage examples, configuration details, or API references remain in this branch README. If you are looking for an actively maintained Go scheduling library, the version 2 branch of gocron is the current supported version. The details of what version 2 offers are not described in this source.
← go-co-op on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.