Skip to content

Package repeat provides tools for repeat something, for the Go programming language.

License

Notifications You must be signed in to change notification settings

reiver/go-repeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-repeat

Package repeat provides tools for repeat something, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: https://godoc.org/github.com/reiver/go-repeat

GoDoc

Example

Here is an example:

import "github.com/reiver/go-repeat"

// ...

// Do this forever, but wait between 4 hours to 5 hours between each time.
repeat.Forever(4 * time.Hour, 5 * time.Hour,

	// Do this until it succeeds, but only try doing it 3 times, and then give up.
	repeat.RedoUntilOKFunc(3,

		// Delay doing this between 0 milliseconds and 50 milliseconds, and then do it.
		repeat.DelayFunc(0, 50 * time.Millisecond,
			fn,
		),
	),
)

Import

To import package repeat use import code like the follownig:

import "github.com/reiver/go-repeat"

Installation

To install package repeat do the following:

GOPROXY=direct go get https://github.com/reiver/go-repeat

Author

Package repeat was written by Charles Iliya Krempeaux

About

Package repeat provides tools for repeat something, for the Go programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages