/tiktok

Controllable Replacement for Go's time.NewTicker

Primary LanguageGoMIT LicenseMIT

tiktok

Build Status

Usage

Tiktok provides a controllable replacement for Go's Tickers provided by the time package. A new Ticker is created like so:

  ticker := tiktok.NewTicker(5)

Tickers can either be controlled directly:

  ticker.Tick(5)

Or at the package level:

  tiktok.Tick(5)

Contributing

First, run the tests.

go get github.com/benmill/quiz

go test github.com/wjdix/tiktok

Write some new tests, fix em and send a pull request.