Retry Execution Library For Go
go get -u github.com/faizalpribadi/retry
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
})
go test