diff --git a/linkchecker.go b/linkchecker.go index dfc06d9..4afa2d4 100644 --- a/linkchecker.go +++ b/linkchecker.go @@ -1,7 +1,5 @@ package main -const userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" - import ( "fmt" "net/http" @@ -11,6 +9,8 @@ import ( "golang.org/x/net/html" ) +const userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" + type LinkChecker struct { client *http.Client visited map[string]bool