Skip to content

Commit

Permalink
add lastBuildDate
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Oct 31, 2023
1 parent acd6469 commit 48f0391
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
5 changes: 4 additions & 1 deletion types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func TestMarshal(t *testing.T) {
Encoded: "<strong>Description</strong>",
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",
},
Expand Down Expand Up @@ -370,6 +372,7 @@ func TestMarshal(t *testing.T) {
<description><![CDATA[<strong>Description</strong>]]></description>
<generator>RSS Blue v1.0.0</generator>
<language>en</language>
<lastBuildDate>Tue, 31 Oct 2023 11:00:00 GMT</lastBuildDate>
<link>https://example.com</link>
<title>Bookworm Podcast</title>
<atom:link href="https://example.com/feed.xml" rel="self" type="application/rss+xml"></atom:link>
Expand Down

0 comments on commit 48f0391

Please sign in to comment.