mirror of
https://codeberg.org/librarian/feeds
synced 2024-12-06 19:16:24 +01:00
Fix the usage to get access to the underlying objects in the document
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user