diff --git a/types.go b/types.go index b13eec5..7b1430b 100644 --- a/types.go +++ b/types.go @@ -56,6 +56,7 @@ type Channel struct { Description *Description `xml:"description"` Generator *string `xml:"generator"` Language *string `xml:"language"` + LastBuildDate *Date `xml:"lastBuildDate"` Link *string `xml:"link"` Title *string `xml:"title"` AtomLink *AtomLink `xml:"atom:link"` diff --git a/types_test.go b/types_test.go index 772c140..a2c1460 100644 --- a/types_test.go +++ b/types_test.go @@ -34,7 +34,9 @@ func TestMarshal(t *testing.T) { Encoded: "Description", IsCDATA: true, }, - Generator: pointer("RSS Blue v1.0.0"), + Generator: pointer("RSS Blue v1.0.0"), + LastBuildDate: pointer(types.Date(time.Date(2023, time.October, 31, 11, 0, 0, 0, time.UTC))), + ITunesImage: &types.ITunesImage{ URL: "https://rssblue.com/@bookworm-podcast/cover-art.png", }, @@ -370,6 +372,7 @@ func TestMarshal(t *testing.T) { Description]]> RSS Blue v1.0.0 en + Tue, 31 Oct 2023 11:00:00 GMT https://example.com Bookworm Podcast