fix: Move userAgent constant after imports block

This commit is contained in:
Erik Winter (aider) 2024-11-25 10:28:07 +01:00
parent afc3d33009
commit 6acded4b9e
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,5 @@
package main 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 ( import (
"fmt" "fmt"
"net/http" "net/http"
@ -11,6 +9,8 @@ import (
"golang.org/x/net/html" "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 { type LinkChecker struct {
client *http.Client client *http.Client
visited map[string]bool visited map[string]bool