history

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInputHistory

func GetInputHistory(module string) []string

func SaveInputHistory

func SaveInputHistory(module string, input 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][]string

type Prefix

type Prefix string

Jump to

Keyboard shortcuts

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