From 6acded4b9efe3cc7909698b2c6506b0174fe6471 Mon Sep 17 00:00:00 2001 From: "Erik Winter (aider)" Date: Mon, 25 Nov 2024 10:28:07 +0100 Subject: [PATCH] fix: Move userAgent constant after imports block --- linkchecker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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