You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
798 B
31 lines
798 B
4 years ago
|
package model
|
||
|
|
||
|
import "encoding/xml"
|
||
|
|
||
|
type OpmlModel struct {
|
||
|
XMLName xml.Name `xml:"opml"`
|
||
|
Text string `xml:",chardata"`
|
||
|
Version string `xml:"version,attr"`
|
||
|
Head struct {
|
||
|
Text string `xml:",chardata"`
|
||
|
Title string `xml:"title"`
|
||
|
} `xml:"head"`
|
||
|
Body struct {
|
||
|
Text string `xml:",chardata"`
|
||
|
Outline []struct {
|
||
|
Text string `xml:",chardata"`
|
||
|
Title string `xml:"title,attr"`
|
||
|
AttrText string `xml:"text,attr"`
|
||
|
Type string `xml:"type,attr"`
|
||
|
XmlUrl string `xml:"xmlUrl,attr"`
|
||
|
Outline []struct {
|
||
|
Text string `xml:",chardata"`
|
||
|
AttrText string `xml:"text,attr"`
|
||
|
Title string `xml:"title,attr"`
|
||
|
Type string `xml:"type,attr"`
|
||
|
XmlUrl string `xml:"xmlUrl,attr"`
|
||
|
} `xml:"outline"`
|
||
|
} `xml:"outline"`
|
||
|
} `xml:"body"`
|
||
|
}
|