Fix gofmt formatting in handler/rss.go
Build and Deploy / build-and-deploy (push) Successful in 1m39s
Build and Deploy / build-and-deploy (push) Successful in 1m39s
This commit is contained in:
+15
-15
@@ -35,20 +35,20 @@ func (h *RSSHandler) resolveImage() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type rssFeed struct {
|
type rssFeed struct {
|
||||||
XMLName xml.Name `xml:"rss"`
|
XMLName xml.Name `xml:"rss"`
|
||||||
Version string `xml:"version,attr"`
|
Version string `xml:"version,attr"`
|
||||||
ItunesNS string `xml:"xmlns:itunes,attr"`
|
ItunesNS string `xml:"xmlns:itunes,attr"`
|
||||||
Channel rssChannel `xml:"channel"`
|
Channel rssChannel `xml:"channel"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type rssChannel struct {
|
type rssChannel struct {
|
||||||
Title string `xml:"title"`
|
Title string `xml:"title"`
|
||||||
Link string `xml:"link"`
|
Link string `xml:"link"`
|
||||||
Description string `xml:"description"`
|
Description string `xml:"description"`
|
||||||
Language string `xml:"language"`
|
Language string `xml:"language"`
|
||||||
Image *rssImage `xml:"image,omitempty"`
|
Image *rssImage `xml:"image,omitempty"`
|
||||||
ItunesImage *rssItunesImage `xml:"itunes:image,omitempty"`
|
ItunesImage *rssItunesImage `xml:"itunes:image,omitempty"`
|
||||||
Items []rssItem `xml:"item"`
|
Items []rssItem `xml:"item"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type rssImage struct {
|
type rssImage struct {
|
||||||
@@ -62,11 +62,11 @@ type rssItunesImage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type rssItem struct {
|
type rssItem struct {
|
||||||
Title string `xml:"title"`
|
Title string `xml:"title"`
|
||||||
Description string `xml:"description"`
|
Description string `xml:"description"`
|
||||||
Enclosure rssEnclosure `xml:"enclosure"`
|
Enclosure rssEnclosure `xml:"enclosure"`
|
||||||
PubDate string `xml:"pubDate"`
|
PubDate string `xml:"pubDate"`
|
||||||
GUID string `xml:"guid"`
|
GUID string `xml:"guid"`
|
||||||
ItunesImage *rssItunesImage `xml:"itunes:image,omitempty"`
|
ItunesImage *rssItunesImage `xml:"itunes:image,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user