Documentation ¶
Index ¶
Constants ¶
View Source
const ( SourceTypeDefault = SourceType("") SourceTypeAtom = SourceType("atom") SourceTypeRSS = SourceType("rss") )
View Source
const DefaultNamespace = "sdl"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { common.XmlAttrs XMLName xml.Name `xml:"sdl collection"` Title string `xml:"sdl title"` Author string `xml:"sdl author,omitempty"` Feeds []*Feed `xml:"sdl feed,omitempty"` }
func (*Collection) String ¶
func (c *Collection) String() string
type Feed ¶
type Feed struct { common.XmlAttrs XMLName xml.Name `xml:"sdl feed"` Name string `xml:"name,attr,omitempty"` ShortName string `xml:"short,attr,omitempty"` Sources []*Source `xml:"sdl source,omitempty"` }
func (*Feed) Source ¶
func (f *Feed) Source(typ SourceType, lang string) *Source
Click to show internal directories.
Click to hide internal directories.