start work on PrevUntil() and NextUntil()

This commit is contained in:
Martin Angers
2012-09-06 10:27:42 -04:00
parent bf960f0855
commit a9c4ad4c8f
3 changed files with 61 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ func ExampleScrape_MetalReview() {
title = s.Find("em").Text()
if score, e = strconv.ParseFloat(s.Find(".score").Text(), 64); e != nil {
// Not a valid float, ignore score
fmt.Printf("Review %d: %s - %s", i, band, title)
fmt.Printf("Review %d: %s - %s.\n", i, band, title)
} else {
// Print all, including score
fmt.Printf("Review %d: %s - %s (%2.1f).\n", i, band, title, score)