Added channel creation to NewFeed()

This commit is contained in:
Jason Streifling 2024-03-05 17:08:29 +01:00
parent c8551159fe
commit 6cd08bb65d

1
rss.go
View File

@ -202,6 +202,7 @@ func NewFeed() *Feed {
return &Feed{ return &Feed{
Version: "2.0", Version: "2.0",
ContentNamespace: "http://purl.org/rss/1.0/modules/content/", ContentNamespace: "http://purl.org/rss/1.0/modules/content/",
Channels: make([]*Channel, 0),
} }
} }