From 48f0391d2d2586b30401d3e496a8d04411a428ef Mon Sep 17 00:00:00 2001 From: Dovydas Date: Tue, 31 Oct 2023 11:15:54 +0000 Subject: [PATCH] add `lastBuildDate` --- types.go | 1 + types_test.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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