fix typo
This commit is contained in:
9
main.go
9
main.go
@@ -20,4 +20,13 @@ func main() {
|
||||
// print podcast to json
|
||||
fmt.Printf("podcast count: %+v\n", len(podcast.Items))
|
||||
|
||||
item := podcast.Items[0]
|
||||
fmt.Printf("name: %s, feedUrl: %s\n", item.CollectionName, item.FeedURL)
|
||||
pod, err := model.LoadFeed(item.FeedURL)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, e := range pod.Episodes[:5] {
|
||||
fmt.Printf("episode: %+v\n", e)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user