filter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package filter provides time and keyword filtering for RSS items.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(items []model.Item, opts Options) []model.Item

Filter returns items matching all specified criteria. An empty Options matches all items.

func ParseTime

func ParseTime(s string) (time.Time, error)

ParseTime attempts to parse a time string in RFC3339 or YYYY-MM-DD format.

Types

type Options

type Options struct {
	Since    *time.Time
	Until    *time.Time
	Titles   []string
	Contents []string
}

Options defines filtering criteria.

Jump to

Keyboard shortcuts

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