Colly Go package: how to check if the error is a Timeout error?

Advertisements Everything is working except that I would like to retry only on Timeout errors, but I dont know how to compare with the specific Client.Timeout error that is generated. The missing part is in comment here: if errors.Is(err, colly.Client.Timeout)…: package main import ( "crypto/tls" "fmt" "github.com/gocolly/colly" "net/http" "os" "strings" ) func main() { crawl()… Read More Colly Go package: how to check if the error is a Timeout error?