rss

package
v0.5.35 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RSSChannel

type RSSChannel struct {
	Title          string               `xml:"title"`
	Link           string               `xml:"link"`
	Description    string               `xml:"description"`
	ManagingEditor string               `xml:"managingEditor"`
	PubDate        commons.NullableTime `xml:"pubDate"`
	LastBuildDate  commons.NullableTime `xml:"lastBuildDate"`
	Image          *RSSImage            `xml:"image"`
	Items          []*RSSItem           `xml:"item"`
}

type RSSFeed

type RSSFeed struct {
	XMLName xml.Name   `xml:"rss"`
	Channel RSSChannel `xml:"channel"`
}

type RSSImage added in v0.5.19

type RSSImage struct {
	URL   string `xml:"url"`
	Title string `xml:"title"`
	Link  string `xml:"link"`
}

type RSSItem

type RSSItem struct {
	Title       string               `xml:"title"`
	Link        string               `xml:"link"`
	Description string               `xml:"description"`
	Content     string               `xml:"http://purl.org/rss/1.0/modules/content/ encoded"`
	PubDate     commons.NullableTime `xml:"pubDate"`
	GUID        string               `xml:"guid"`
	Image       *RSSImage            `xml:"-"`
}

func (*RSSItem) Cleanup

func (i *RSSItem) Cleanup()

type RSSParser

type RSSParser struct {
	OnURLFound func(*RSSItem)
}

func (*RSSParser) Load

func (r *RSSParser) Load(feedURL string) error

Jump to

Keyboard shortcuts

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