Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resp, err := http.Get(uri)
- if err != nil{
- log.Fatal(err)
- }
- defer resp.Body.Close()
- body, err := ioutil.ReadAll(resp.Body)
- if err != nil{
- log.Fatal(err)
- }
- doc, err := html.Parse(strings.NewReader(string(body)))
- if err != nil{
- log.Fatal(err)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement