history

package
v0.0.0-...-b60d606 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *History

func (*History) Append

func (h *History) Append(item string)

func (*History) DeleteAtIdx

func (h *History) DeleteAtIdx(idx int)

func (*History) GetAtIdx

func (h *History) GetAtIdx(idx int) (string, error)

GetAdIdx returns the value at index without moving the hisotry cursor

func (*History) GetList

func (h *History) GetList() []string

func (*History) GoNext

func (h *History) GoNext() (string, error)

func (*History) GoPrev

func (h *History) GoPrev() (string, error)

Jump to

Keyboard shortcuts

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