Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 544 Bytes

File metadata and controls

35 lines (23 loc) · 544 Bytes

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