package slowtwitch import ( "fmt" "io" "net/http" "strings" ) func GetPageStatus(url string) int { response, err := http.Get(url) if err != nil { fmt.Println(err) } defer response.Body.Close() bytes, _ := io.ReadAll(response.Body) html := string(bytes) if strings.Contains(html, "

Error

") { return 404 } else { return 200 } }