Skip to content

Instantly share code, notes, and snippets.

@kitz99
Created July 1, 2018 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitz99/13af31682ca011d79669fb26d58457fb to your computer and use it in GitHub Desktop.
Save kitz99/13af31682ca011d79669fb26d58457fb to your computer and use it in GitHub Desktop.
package main
import (
"github.com/antchfx/htmlquery"
)
func errHandler(err error) {
if err != nil {
panic(err)
}
}
func main() {
doc, err := htmlquery.LoadURL("https://kernel-panic.me/scraping.html")
errHandler(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment