Documentation
¶
Overview ¶
Package recent persists last-used timestamps for named items so a list can offer a "recently used" sort that survives restarts. State is a small JSON map (name to unix seconds), read and written through the file on every call so a fresh process picks up the latest entries. The caller picks the file path, so several independent stores can coexist.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the file-backed last-used timestamp map. Safe for concurrent use. A zero path disables persistence: every operation becomes a no-op.
Click to show internal directories.
Click to hide internal directories.