In GoQuery, if I create a snippet as follows:
doc, err := goquery.NewDocument(s)
if err != nil {
log.Fatal(err)
}
where s is a valid url, I can see the error string, but if the page is returning a 403, how do I find out and stop instead of letting my code run?
Is there a way to find the http response using Goquery?