Small fix in example.go comment.

This commit is contained in:
jim teeuwen 2011-05-22 16:20:05 +02:00
parent 9957923226
commit 0f58a6b395
1 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,11 @@ package main
/* /*
This is a minimal sample application, demonstrating how to set up an RSS feed This is a minimal sample application, demonstrating how to set up an RSS feed
for regular polling of new channels/items. for regular polling of new channels/items.
Build & run with:
$ 6g example.go && 6l example.6 && ./6.out
*/ */
import ( import (
@ -13,10 +18,9 @@ import (
) )
func main() { func main() {
// This sets up a new feed and polls it for new channels/items in // This sets up a new feed and polls it for new channels/items.
// a separate goroutine. Invoke it with 'go PollFeed(..)' to have the // Invoke it with 'go PollFeed(...)' to have the polling performed in a
// polling performed in a separate goroutine, so you can continue with // separate goroutine, so you can continue with the rest of your program.
// the rest of your program.
PollFeed("http://cyber.law.harvard.edu/rss/examples/sampleRss091.xml", 5) PollFeed("http://cyber.law.harvard.edu/rss/examples/sampleRss091.xml", 5)
} }