rss

package
v0.0.0-...-cfcc9fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFeed

func IsFeed(data []byte) bool

Types

type Channel

type Channel struct {
	Title         string `xml:"title"`
	TTL           int    `xml:"ttl"`
	LastBuildDate string `xml:"lastBuildDate"`
	PubDate       string `xml:"pubDate"`
	Items         []Item `xml:"item"`
}

type Feed

type Feed struct {
	Channel Channel `xml:"channel"`
	Raw     []byte  `xml:",innerxml"`
}

func NewFeed

func NewFeed(data []byte) (*Feed, error)

type Item

type Item struct {
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Link        string `xml:"link"`
	PubDate     string `xml:"pubDate"`
	GUID        string `xml:"guid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL