pic
github.com/se77en/piccolo
go get github.com/se77en/piccolo
pic

github.com/se77en/piccolo

Cron jobs in go

by Damon Zhao

v0.0.0-20150509064105-092a812ba752 (see all)License:MIT
go get github.com/se77en/piccolo
Readme

Piccolo wercker status Build status

Piccolo is a tool that run a command periodically. It can be used both as a command line utility and a library

Piccolo

Installation

$ go get github.com/se77en/piccolo

For Command Line

$ go install piccolo.go

For Application

import github.com/se77en/piccolo/piccolo

Usage

For Command Line

Usage: piccolo <interval> <command>

Examples

piccolo 700ms echo hello

The time can be such as "ns", "us", "ms", "s", "m", "h".

For Application

piccolo.AddTimingFunc("test", -1, func(){fmt.Println("do something")})
piccolo.StartTiming(7 * time.Second)

License

MIT

GitHub Stars

11

LAST COMMIT

7yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20150509064105-092a812ba752
1yr ago
No alternatives found
No tutorials found
Add a tutorial