There is some bug with package "go-pkg-rss" about reading response.
There is a lot of similar packages, i tried to replicate your example with another one (it's simpler i think):
import (
"fmt"
"github.com/SlyMarbo/rss"
"net/http"
"os"
)
func hello(w http.ResponseWriter, r *http.Request) {
url := "http://stackoverflow.com/feeds"
feed, _ := rss.Fetch(url)
fmt.Printf("Sent fetch for %s\n", url)
fmt.Fprintf(w, "There are %d items in %s\n\n", len(feed.Items), url)
for key, value := range feed.Items {
fmt.Fprintln(w, key, value.Title)
}
}
func main() {
http.HandleFunc("/", hello)
http.ListenAndServe(":"+os.Getenv("PORT"), nil)
}