recent

package
v0.0.0-...-2f5df31 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterExcludingLatest

func FilterExcludingLatest(st State, t model.ItemType, in []model.Pair) []model.Pair

func Init

func Init(path string) error

func Record

func Record(path string, limit int, t model.ItemType, key string) error

func SortEntriesByRecent

func SortEntriesByRecent(st State, in []model.Entry) []model.Entry

Types

type State

type State struct {
	RankByMapKey map[string]int
	LatestType   model.ItemType
	LatestKey    string
}

func Load

func Load(path string) (State, error)

Jump to

Keyboard shortcuts

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