Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { XMLName struct{} `xml:"category"` Term string `xml:"term,attr"` }
Category is a category of an Atom entry.
type Entry ¶
type Entry struct { XMLName struct{} `xml:"entry"` Title string `xml:"title"` Summary string `xml:"summary,omitempty"` Content *EntryContent `xml:"content"` Published time.Time `xml:"published"` Updated time.Time `xml:"updated"` Link *Link `xml:""` ID string `xml:"id"` AuthorName string `xml:"author>name,omitempty"` AuthorURI string `xml:"author>uri,omitempty"` Categories []*Category `xml:""` }
Entry is a single entry in an Atom feed.
type EntryContent ¶
EntryContent is a simple helper class that allows us to wrap an entry's content in an XML CDATA tag.
type Feed ¶
type Feed struct { XMLName struct{} `xml:"feed"` XMLLang string `xml:"xml:lang,attr"` XMLNS string `xml:"xmlns,attr"` Title string `xml:"title"` ID string `xml:"id"` Updated time.Time `xml:"updated"` Links []*Link `xml:""` Entries []*Entry `xml:""` }
Feed represents an Atom feed that with be marshaled to XML.
Note that XMLName is a Golang XML "magic" attribute.
Click to show internal directories.
Click to hide internal directories.