Skip to content

faizalpribadi/retry

Repository files navigation

retry

Build Status

description

Retry Execution Library For Go

installation

go get -u github.com/faizalpribadi/retry

usage

    retry.Do(5, 5, func() error {
		resp, err := http.Get("https://example.io")
		if err != nil {
			log.Println(err)
			return err
		}
		defer resp.Body.Close()
		return nil
	})

test

go test