Skip to content

Commit

Permalink
Fix the usage to get access to the underlying objects in the document
Browse files Browse the repository at this point in the history
  • Loading branch information
nlimpid authored and kisielk committed Sep 28, 2017
1 parent fa8f554 commit b78e02c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ From here, you can output Atom, RSS, or JSON Feed versions of this feed easily
You can also get access to the underlying objects that feeds uses to export its XML
atomFeed := &Atom{feed}.AtomFeed()
rssFeed := &Rss{feed}.RssFeed()
jsonFeed := &JSON{feed}.JSONFeed()
atomFeed := (&Atom{Feed: feed}).AtomFeed()
rssFeed := (&Rss{Feed: feed}).RssFeed()
jsonFeed := (&JSON{Feed: feed}).JSONFeed()
From here, you can modify or add each syndication's specific fields before outputting
Expand Down

0 comments on commit b78e02c

Please sign in to comment.