Sfoglia il codice sorgente

display 10 most recent feeds

Lucas Stadler 11 anni fa
parent
commit
7c3d757924
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      go/feeds.go

+ 4 - 3
go/feeds.go

@ -37,10 +37,11 @@ func main() {
37 37
			continue
38 38
		}
39 39
40
		fmt.Printf("%s: %s - %s\n", fn, f.Title, f.Description)
40 41
		fmt.Printf("%s: %d entries\n", fn, len(f.Items))
41
		//for _, item := range f.Items {
42
		//	fmt.Println(item.Title)
43
		//}
42
		for _, item := range f.Items[0:10] {
43
			fmt.Printf("%s: %s\n", fn, item.Title)
44
		}
44 45
	}
45 46
}
46 47