new to working with goroutines; currently have a really simple implementation of:
func someFunc() error {
resp, err := httpClient.Post()
if err != nil {
log...
return error
}
return nil
}
func flowA() {
...
go someFunc()
}
What I'd like to achieve is to implement retrying on unsuccessful response from the Post request inside of the func being managed by the goroutine. Not sure if it's better to handle the retry logic by wrapping the someFunc() err value, or if there's a more idiomatic way to handle errors returned within a goroutine.