Documentation ¶
Index ¶
- type History
- func (h *History) Add(input string)
- func (h *History) Load(file string) (err error)
- func (h *History) Newer(buf string) (new string, changed bool)
- func (h *History) Older(buf string) (new string, changed bool)
- func (h *History) Rebuild(buf string, force bool)
- func (h *History) Remove(input string)
- func (h *History) Reset()
- func (h *History) Save(file string) (err error)
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
}
History stores the texts that are entered.
func (*History) Newer ¶
Newer saves a buffer of current line and get a buffer of next line by up-arrow. The changes of line buffers are stored until new history is created.
Click to show internal directories.
Click to hide internal directories.