rss

package
v0.0.0-...-129837a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

NewParser creates a new instance of the Parser struct.

func (*Parser) ParseURL

func (p *Parser) ParseURL(feedURL string) ([]*gofeed.Item, error)

ParseURL parses the RSS feed from the given URL and returns a slice of items and an error, if any.

type RSSItem

type RSSItem struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Url         string `json:"url"`
	HtmlContent string `json:"html_content"`
}

func (*RSSItem) IsFiltered

func (rssi *RSSItem) IsFiltered(filterList []string) bool

Jump to

Keyboard shortcuts

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