history

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHistoryItem

func AddHistoryItem(history *History, query Query, output, historyFile string) error

AddHistoryItem adds a new history item and saves it to the specified JSON file.

func SaveHistory

func SaveHistory(history *History, historyFile string) error

SaveHistory saves history to the specified JSON file.

Types

type History

type History = internal.History

func LoadHistory

func LoadHistory(historyFile string) (*History, error)

LoadHistory loads history from the specified JSON file.

type HistoryItem

type HistoryItem = internal.HistoryItem

type Query

type Query = internal.Query

Jump to

Keyboard shortcuts

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