quantum-inspiration / commit
Log the names and urls of random wiki pages.
wiki.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wiki.go b/wiki.go index 792f16d..3ae04da 100644 --- a/wiki.go +++ b/wiki.go @@ -63,6 +63,7 @@ func getRandomWikipediaPages(count int) (nameToUrlMap map[string]string, err err title := wikiResponse.Query.Pages[pageID].Title url := fmt.Sprintf("http://en.m.wikipedia.org/?curid=%s", pageID) nameToUrlMap[title] = url + fmt.Printf("title: %s, url: %s\n", title, url) } return nameToUrlMap, nil