filter

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFeeds

func FilterFeeds(prams *FilterPrams) (*gofeed.Feed, error)

Filter `url` based on `prams` if `prams` is nil (or all filters are empty) return the original feeds

func GenerateFeeds

func GenerateFeeds(feeds *gofeed.Feed, t string) (string, error)

Geerate a feed string of type t (a string should be json, rss, or atom). If t is malformatted or invalid, it returns XML rss feeds

Types

type FilterPrams

type FilterPrams struct {
	URL,
	AuthorRegex,
	ContentRegex,
	TitleRegex,
	LinkRegex,
	DescriptionRegex string
	DotNet bool // whether to use .NET Regex Engineg
}

Jump to

Keyboard shortcuts

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