Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - onatm/clockwerk: Job Scheduling Library

Job Scheduling Library. Contribute to onatm/clockwerk development by creating an account on GitHub.

Visit SiteGitHub - onatm/clockwerk: Job Scheduling Library

GitHub - onatm/clockwerk: Job Scheduling Library

Job Scheduling Library. Contribute to onatm/clockwerk development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

clockwerk

Coverage Status Go Report Card Go Reference

Job Scheduling Library

clockwerk allows you to schedule periodic jobs using a simple, fluent syntax.

Installing

Using clockwerk is easy. First, use go get to install the latest version of the library.

go get -u github.com/onatm/clockwerk@latest

Usage

Include clockwerk in your application:

import "github.com/onatm/clockwerk"

Example

package main

import (
  "fmt"
  "time"
  "github.com/onatm/clockwerk"
)

type DummyJob struct{}

func (d DummyJob) Run() {
  fmt.Println("Every 30 seconds")
}

func main() {
  var job DummyJob
  c := clockwerk.New()
  c.Every(30 * time.Second).Do(job)
  c.Start()
}

GoLang Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.