@ -1,21 +1,21 @@
[](https://godoc.org/github.com/eduncan911 /podcast)
[](https://github.com/eduncan911 /podcast/actions?workflow=go-cicd)
[](https://coveralls.io/github/eduncan911 /podcast?branch=master)
[](https://goreportcard.com/report/github.com/eduncan911 /podcast)
[](https://eduncan911 .mit-license.org/)
[](https://godoc.org/github.com/arenzana /podcast)
[](https://github.com/arenzana /podcast/actions?workflow=go-cicd)
[](https://coveralls.io/github/arenzana /podcast?branch=master)
[](https://goreportcard.com/report/github.com/arenzana /podcast)
[](https://arenzana .mit-license.org/)
# podcast
Package podcast generates a fully compliant iTunes and RSS 2.0 podcast feed
for GoLang using a simple API.
Full documentation with detailed examples located at < a href = "https://godoc.org/github.com/ eduncan911/podcast"> https://godoc.org/github.com/eduncan911 /podcast< / a >
Full documentation with detailed examples located at < a href = "https://godoc.org/github.com/ arenzana/podcast"> https://godoc.org/github.com/arenzana /podcast< / a >
### Usage
To use, `go get` and `import` the package like your typical GoLang library.
$ go get -u github.com/eduncan911 /podcast
$ go get -u github.com/arenzana /podcast
import "github.com/eduncan911 /podcast"
import "github.com/arenzana /podcast"
The API exposes a number of method receivers on structs that implements the
logic required to comply with the specifications and ensure a compliant feed.
@ -25,7 +25,7 @@ Notably, the `Podcast.AddItem` function performs most
of the heavy lifting by taking the `Item` input and performing
validation, overrides and duplicate setters through the feed.
Full detailed Examples of the API are at < a href = "https://godoc.org/github.com/ eduncan911/podcast"> https://godoc.org/github.com/eduncan911 /podcast< / a > .
Full detailed Examples of the API are at < a href = "https://godoc.org/github.com/ arenzana/podcast"> https://godoc.org/github.com/arenzana /podcast< / a > .
### Go Modules
This library is supported on GoLang 1.7 and higher.
@ -57,8 +57,8 @@ of the inputs.
go get -u github.com/dvyukov/go-fuzz/go-fuzz
go get -u github.com/dvyukov/go-fuzz/go-fuzz-build
go get -u github.com/eduncan911 /podcast
cd $GOPATH/src/github.com/eduncan911 /podcast
go get -u github.com/arenzana /podcast
cd $GOPATH/src/github.com/arenzana /podcast
go-fuzz-build
go-fuzz -func FuzzPodcastAddItem
@ -175,15 +175,15 @@ Podcasts: <a href="https://help.apple.com/itc/podcasts_connect/#/itca5b22233">ht
// instantiate a new Podcast
p := podcast.New(
"eduncan911 Podcasts",
"http://eduncan911.com /",
"arenzana Podcasts",
"http://arenzana.org /",
"An example Podcast",
& pubDate, & updatedDate,
)
// add some channel properties
p.AddAuthor("Jane Doe", "me@janedoe.com")
p.AddAtomLink("http://eduncan911.com /feed.rss")
p.AddAtomLink("http://arenzana.org /feed.rss")
p.AddImage("http://janedoe.com/i.jpg")
p.AddSummary(`link < a href = "http://example.com" > example.com< / a > `)
p.IExplicit = "no"
@ -232,20 +232,20 @@ Podcasts: <a href="https://help.apple.com/itc/podcasts_connect/#/itca5b22233">ht
// <?xml version="1.0" encoding="UTF-8"?>
// < rss version = "2.0" xmlns:atom = "http://www.w3.org/2005/Atom" xmlns:itunes = "http://www.itunes.com/dtds/podcast-1.0.dtd" >
// < channel >
// < title > eduncan911 Podcasts< / title >
// < link > http://eduncan911.com /< / link >
// < title > arenzana Podcasts< / title >
// < link > http://arenzana.org /< / link >
// < description > An example Podcast< / description >
// < generator > go podcast v1.3.1 (github.com/eduncan911 /podcast)< / generator >
// < generator > go podcast v1.3.1 (github.com/arenzana /podcast)< / generator >
// < language > en-us< / language >
// < lastBuildDate > Mon, 06 Feb 2017 08:21:52 +0000< / lastBuildDate >
// < managingEditor > me@janedoe.com (Jane Doe)< / managingEditor >
// < pubDate > Sat, 04 Feb 2017 08:21:52 +0000< / pubDate >
// < image >
// < url > http://janedoe.com/i.jpg< / url >
// < title > eduncan911 Podcasts< / title >
// < link > http://eduncan911.com /< / link >
// < title > arenzana Podcasts< / title >
// < link > http://arenzana.org /< / link >
// < / image >
// < atom:link href = "http:// eduncan911.com /feed.rss" rel = "self" type = "application/rss+xml" > < / atom:link >
// < atom:link href = "http:// arenzana.org /feed.rss" rel = "self" type = "application/rss+xml" > < / atom:link >
// < itunes:author > me@janedoe.com (Jane Doe)< / itunes:author >
// < itunes:summary > <![CDATA[link <a href="http://example.com">example.com</a>]]> < / itunes:summary >
// < itunes:image href = "http://janedoe.com/i.jpg" > < / itunes:image >
@ -333,7 +333,7 @@ Podcasts: <a href="https://help.apple.com/itc/podcasts_connect/#/itca5b22233">ht
// < title > Sample Podcasts< / title >
// < link > http://example.com/< / link >
// < description > An example Podcast< / description >
// < generator > go podcast v1.3.1 (github.com/eduncan911 /podcast)< / generator >
// < generator > go podcast v1.3.1 (github.com/arenzana /podcast)< / generator >
// < language > en-us< / language >
// < lastBuildDate > Mon, 06 Feb 2017 08:21:52 +0000< / lastBuildDate >
// < managingEditor > jane.doe@example.com (Jane Doe)< / managingEditor >
@ -1168,8 +1168,8 @@ Bytes returns an encoded []byte slice.
```go
p := podcast.New(
"eduncan911 Podcasts",
"http://eduncan911.com /",
"arenzana Podcasts",
"http://arenzana.org /",
"An example Podcast",
& pubDate, & updatedDate,
)
@ -1203,18 +1203,18 @@ p := podcast.New(
// <?xml version="1.0" encoding="UTF-8"?>
// < rss version = "2.0" xmlns:itunes = "http://www.itunes.com/dtds/podcast-1.0.dtd" >
// < channel >
// < title > eduncan911 Podcasts< / title >
// < link > http://eduncan911.com /< / link >
// < title > arenzana Podcasts< / title >
// < link > http://arenzana.org /< / link >
// < description > An example Podcast< / description >
// < generator > go podcast v1.3.1 (github.com/eduncan911 /podcast)< / generator >
// < generator > go podcast v1.3.1 (github.com/arenzana /podcast)< / generator >
// < language > en-us< / language >
// < lastBuildDate > Mon, 06 Feb 2017 08:21:52 +0000< / lastBuildDate >
// < managingEditor > me@janedoe.com (Jane Doe)< / managingEditor >
// < pubDate > Sat, 04 Feb 2017 08:21:52 +0000< / pubDate >
// < image >
// < url > http://janedoe.com/i.jpg< / url >
// < title > eduncan911 Podcasts< / title >
// < link > http://eduncan911.com /< / link >
// < title > arenzana Podcasts< / title >
// < link > http://arenzana.org /< / link >
// < / image >
// < itunes:author > me@janedoe.com (Jane Doe)< / itunes:author >
// < itunes:summary > < 
Generated by [godoc2ghmd ](https://github.com/ arenzana /godoc2ghmd)