history

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveInputHistory

func SaveInputHistory(module string, input string, identifier string)

Types

type Hash

type Hash string

type History

type History HistoryMap

func Get

func Get() History

func (*History) Delete

func (s *History) Delete(hash string)

func (History) Save

func (s History) Save(hash string, prefix string)

type HistoryEntry

type HistoryEntry struct {
	LastUsed      time.Time `json:"last_used,omitempty"`
	Used          int       `json:"used,omitempty"`
	DaysSinceUsed int       `json:"-"`
}

type HistoryMap

type HistoryMap map[string]map[string]*HistoryEntry

type InputHistory

type InputHistory map[string][]InputHistoryItem

type InputHistoryItem added in v0.7.6

type InputHistoryItem struct {
	Term       string
	Identifier string
}

func GetInputHistory

func GetInputHistory(module string) []InputHistoryItem

type Prefix

type Prefix string

Jump to

Keyboard shortcuts

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