From 793ea4ae065bedb49a1559c3a7a6f9b949d5f620 Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Wed, 4 Mar 2015 15:21:35 +1100 Subject: [PATCH] added go get (install) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8bbfc58..6c6ab7d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,12 @@ A simple backoff algorithm in Go (Golang) [![GoDoc](https://godoc.org/github.com/jpillora/backoff?status.svg)](https://godoc.org/github.com/jpillora/backoff) +### Install + +``` +$ go get -v github.com/jpillora/backoff +``` + # Usage Backoff is a `time.Duration` counter. It starts at `Min`. After every call to `Duration()` it is multiplied by `Factor`. It is capped at `Max`. It returns to `Min` on every call to `Reset()`. Used in conjunction with the `time` package.