rdf xml structs

This commit is contained in:
Nazar Kanaev 2021-03-22 13:51:14 +00:00
parent ff4abb8dfe
commit f28f0eac1a

21
src/feed/rdf.go Normal file
View File

@ -0,0 +1,21 @@
package feed
import (
"encoding/xml"
)
type rdfFeed struct {
XMLName xml.Name `xml:"RDF"`
Title string `xml:"channel>title"`
Link string `xml:"channel>link"`
Items []rdfItem `xml:"item"`
}
type rdfItem struct {
Title string `xml:"title"`
Link string `xml:"link"`
Description string `xml:"description"`
DublinCoreDate string `xml:"http://purl.org/dc/elements/1.1/ date"`
DublinCoreContent string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"`
}