filter

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 5 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. Supported formats:

  • RFC3339: 2026-03-12T08:30:00Z
  • Date: 2026-03-12
  • Relative: 1h, 2d, 30m (hours, days, minutes ago)

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