feed

package module
v0.0.0-...-b4d7393 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 6 Imported by: 0

README

feed Go Documentation

A simple parser for RSS and Atom feeds.

Documentation

Overview

Package feed provides a simple parser for RSS and Atom feeds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Title       string
	URL         string
	PublishedAt time.Time
}

An Entry represents a parsed entry from a feed.

type Feed

type Feed struct {
	Title   string
	Entries []Entry
}

A Feed represents a parsed web feed.

func Parse

func Parse(data []byte) (feed Feed, err error)

Parse parses an RSS or Atom feed into a Feed. An error is returned if the format is not supported.

func (Feed) UpdatedAt

func (f Feed) UpdatedAt() (t time.Time)

UpdatedAt returns the time of the last published entry.

Jump to

Keyboard shortcuts

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