## gorilla/feeds
Web feed generator library.
### Goals
* simple interface to create both Atom & RSS 2.0 feeds
* full support for Atom/RSS2.0 spec elements
* ability to modify particulars for each spec
### Usage
```go
import (
"fmt"
"time"
"github.com/gorilla/syndicate"
)
now := time.Now()
feed := &syndicate.Feed{
Title: "jmoiron.net blog",
Link: &syndicate.Link{Href: "http://jmoiron.net/blog"},
Description: "discussion about tech, footie, photos",
Author: &syndicate.Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Created: now,
}
feed.Items = []*syndicate.Item{
&syndicate.Item{
Title: "Limiting Concurrency in Go",
Link: &syndicate.Link{Href: "http://jmoiron.net/blog/limiting-concurrency-in-go/"},
Description: "A discussion on controlled parallelism in golang",
Author: &syndicate.Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Created: now,
},
&syndicate.Item{
Title: "Logic-less Template Redux",
Link: &syndicate.Link{Href: "http://jmoiron.net/blog/logicless-template-redux/"},
Description: "More thoughts on logicless templates",
Created: now,
},
&syndicate.Item{
Title: "Idiomatic Code Reuse in Go",
Link: &syndicate.Link{Href: "http://jmoiron.net/blog/idiomatic-code-reuse-in-go/"},
Description: "How to use interfaces effectively",
Created: now,
},
}
atom, err := feed.ToAtom()
rss, err := feed.ToRss()
fmt.Println(atom, "\n", rss)
```
Outputs:
```xml
jmoiron.net bloghttp://jmoiron.net/blog2013-01-16T03:26:01-05:00discussion about tech, footie, photosLimiting Concurrency in Go2013-01-16T03:26:01-05:00tag:jmoiron.net,2013-01-16:/blog/limiting-concurrency-in-go/A discussion on controlled parallelism in golangJason Moironjmoiron@jmoiron.netLogic-less Template Redux2013-01-16T03:26:01-05:00tag:jmoiron.net,2013-01-16:/blog/logicless-template-redux/More thoughts on logicless templatesIdiomatic Code Reuse in Go2013-01-16T03:26:01-05:00tag:jmoiron.net,2013-01-16:/blog/idiomatic-code-reuse-in-go/How to use interfaces <em>effectively</em>jmoiron.net blog
http://jmoiron.net/blog
discussion about tech, footie, photosjmoiron@jmoiron.net (Jason Moiron)2013-01-16T03:22:24-05:00Limiting Concurrency in Go
http://jmoiron.net/blog/limiting-concurrency-in-go/
A discussion on controlled parallelism in golang2013-01-16T03:22:24-05:00Logic-less Template Redux
http://jmoiron.net/blog/logicless-template-redux/
More thoughts on logicless templates2013-01-16T03:22:24-05:00Idiomatic Code Reuse in Go
http://jmoiron.net/blog/idiomatic-code-reuse-in-go/
How to use interfaces <em>effectively</em>2013-01-16T03:22:24-05:00
```