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.
35 lines
780 B
35 lines
780 B
package model
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"time"
|
|
)
|
|
|
|
type OpmlModel struct {
|
|
XMLName xml.Name `xml:"opml"`
|
|
Text string `xml:",chardata"`
|
|
Version string `xml:"version,attr"`
|
|
Head OpmlHead `xml:"head"`
|
|
Body OpmlBody `xml:"body"`
|
|
}
|
|
|
|
type OpmlHead struct {
|
|
Text string `xml:",chardata"`
|
|
Title string `xml:"title"`
|
|
DateCreated time.Time `xml:"dateCreated"`
|
|
}
|
|
|
|
type OpmlBody struct {
|
|
Text string `xml:",chardata"`
|
|
Outline []OpmlOutline `xml:"outline"`
|
|
}
|
|
|
|
type OpmlOutline struct {
|
|
Title string `xml:"title,attr"`
|
|
XmlUrl string `xml:"xmlUrl,attr"`
|
|
Text string `xml:",chardata"`
|
|
AttrText string `xml:"text,attr"`
|
|
Type string `xml:"type,attr"`
|
|
Outline []OpmlOutline `xml:"outline"`
|
|
}
|