Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Body ¶
type Body struct {
Outlines []Outline `xml:"outline"`
}
Body is the body node of an OPML document.
type Head ¶
type Head struct {
Title string `xml:"title"`
DateCreated string `xml:"dateCreated,omitempty"`
DateModified string `xml:"dateModified,omitempty"`
}
Head is the header node of an OPML document.
type OPML ¶
type OPML struct {
XMLName xml.Name `xml:"opml"`
Version string `xml:"version,attr"`
Head Head `xml:"head"`
Body Body `xml:"body"`
}
OPML is the root node of an OPML document.
func NewOPMLFromBytes ¶
NewOPMLFromBytes creates a new OPML object from a byte array.
func NewOPMLFromFile ¶
NewOPMLFromFile creates a new OPML object from a file.
type Outline ¶
type Outline struct {
Outlines []Outline `xml:"outline"`
Text string `xml:"text,attr"`
Type string `xml:"type,attr,omitempty"`
Created string `xml:"created,attr,omitempty"`
Category string `xml:"category,attr,omitempty"`
XMLURL string `xml:"xmlUrl,attr,omitempty"`
HTMLURL string `xml:"htmlUrl,attr,omitempty"`
URL string `xml:"url,attr,omitempty"`
Title string `xml:"title,attr,omitempty"`
Description string `xml:"description,attr,omitempty"`
}
Outline contains details about the subscription.
Click to show internal directories.
Click to hide internal directories.