![go](https://habrastorage.org/r/w120/webt/5b/2e/6a/5b2e6a4a389cc942256392.png)
Go
0
Вклад в тег
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"regexp"
)
func main() {
resp, err := http.Get("LINK")
if err != nil {
log.Fatalln(err)
}
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatalln(err)
}
tm, err := regexp.Match("TEXT", []byte(body))
if tm {
fmt.Println("true")
} else {
fmt.Println("false")
}
}