histlist

package
v0.0.0-...-a6e4c85 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Histlist

type Histlist struct {

	// list of commands lines (deduplicated)
	List []string
	// lookup: cmdLine -> last index
	LastIndex map[string]int
	// contains filtered or unexported fields
}

Histlist is a deduplicated list of cmdLines

func Copy

func Copy(hl Histlist) Histlist

Copy Histlist

func New

func New(sugar *zap.SugaredLogger) Histlist

New Histlist

func (*Histlist) AddCmdLine

func (h *Histlist) AddCmdLine(cmdLine string)

AddCmdLine to the histlist

func (*Histlist) AddHistlist

func (h *Histlist) AddHistlist(h2 Histlist)

AddHistlist contents of another histlist to this histlist

Jump to

Keyboard shortcuts

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