From d9e4d610c0357e5e098666166a117581ba1d8131 Mon Sep 17 00:00:00 2001 From: Guan Ce Date: Sat, 12 Jul 2014 08:48:07 +0800 Subject: [PATCH] Fixture on example code imported "github.com/PuerkitoBio/goquery", but if I didn't use goquery.NewDocument() method, the compiler would report "undefined: NewDocument" error --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ffe367..035fc9c 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,8 @@ func ExampleScrape_MetalSucks() { // Load the HTML document (in real use, the type would be *goquery.Document) var doc *Document var e error - + + // Initialize doc, (in real use, the method would be goquery.NewDocument) if doc, e = NewDocument("http://metalsucks.net"); e != nil { log.Fatal(e) }