yttopodcast/templates/types.go
HeshamTB a33b90c5c7
init: tools and commands
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2024-06-09 14:04:22 +03:00

37 lines
719 B
Go

package templates
import (
"embed"
)
//go:embed *.templ
var TemplatesFS embed.FS
//go:embed base.rss.templ
var RSSTemplate string
type FeedData struct {
Title string
PublishDateRfcEmail string
BuildDateRfcEmail string
GeneratorName string
PodcastPage string
Lang string
CopyRight string
Summary string
PodcastImageURL string
FeedURL string
Items []FeedItem
}
type FeedItem struct {
Title string
PublishDateRfcEmail string
Id string
CoverImageURL string
Description string
Length int
EnclosureURL string
Duration string
}