Documentation
¶
Overview ¶
Package rss generates Atom XML feeds from blog post metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomAuthor ¶
type AtomAuthor struct {
Name string `xml:"name"`
}
AtomAuthor represents an author element in an Atom feed.
Fields:
- Name: Author name
type AtomCategory ¶
type AtomCategory struct {
Term string `xml:"term,attr"`
}
AtomCategory represents a category element in an Atom feed.
Fields:
- Term: Category term
type AtomEntry ¶
type AtomEntry struct {
Title string `xml:"title"`
Links []AtomLink `xml:"link"`
ID string `xml:"id"`
Updated string `xml:"updated"`
Summary string `xml:"summary,omitempty"`
Author *AtomAuthor `xml:"author,omitempty"`
Categories []AtomCategory `xml:"category,omitempty"`
}
AtomEntry represents a single entry in an Atom feed.
Fields:
- Title: Entry title
- Links: Entry links
- ID: Unique entry identifier
- Updated: Entry update timestamp
- Summary: Optional entry summary
- Author: Optional entry author
- Categories: Optional entry categories
type AtomFeed ¶
type AtomFeed struct {
XMLName xml.Name `xml:"feed"`
NS string `xml:"xmlns,attr"`
Title string `xml:"title"`
Links []AtomLink `xml:"link"`
ID string `xml:"id"`
Updated string `xml:"updated"`
Entries []AtomEntry `xml:"entry"`
}
AtomFeed represents an Atom 1.0 feed document.
Fields:
- XMLName: XML element name ("feed")
- NS: Atom namespace URI
- Title: Feed title
- Links: Feed links (self and alternate)
- ID: Unique feed identifier
- Updated: Last update timestamp
- Entries: Feed entries
Click to show internal directories.
Click to hide internal directories.