Documentation
¶
Overview ¶
Package feed provides a dependency-free parser and fetcher for RSS 2.0, Atom 1.0 and JSON Feed 1.1 documents. It normalizes each source format into a single Feed representation.
The package uses only the Go standard library and builds with CGO disabled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnrecognized = errors.New("feed: unrecognized format")
ErrUnrecognized is returned by Parse when the input does not look like a supported feed format.
Functions ¶
This section is empty.
Types ¶
type Enclosure ¶
Enclosure is an attached media object (RSS enclosure, media:content, Atom link rel=enclosure).
type Entry ¶
type Entry struct {
ID string
Title string
Author string
Summary string // short text/description (may be HTML)
Content string // full content if present (may be HTML)
Link string // permalink to the entry
Published time.Time // zero if absent/unparseable
Media []Enclosure
}
Entry is one item/entry/post.
Click to show internal directories.
Click to hide internal directories.
