fix: Move userAgent constant after imports block
This commit is contained in:
parent
afc3d33009
commit
6acded4b9e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue