Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLHistory ¶
type CLHistory struct {
// contains filtered or unexported fields
}
func New ¶
func New(params CLHistoryParams) (*CLHistory, error)
func (*CLHistory) Add ¶
Add adds the given string as a new history item to the in-RAM history and, if Filename in params was not empty, then also to this file. It also resets the history navigation, if any.
func (*CLHistory) Load ¶
Load loads all history from the file. If Filename in params is empty, Load is a no-op.
type CLHistoryParams ¶
type CLHistoryParams struct {
// Filename is where to load the history from and write it to. If it's
// empty, the history is only kept in RAM and not persisted anywhere.
Filename string
}
type HistoryDecoder ¶
type HistoryDecoder struct {
// contains filtered or unexported fields
}
func NewHistoryDecoder ¶
func NewHistoryDecoder(r io.Reader) *HistoryDecoder
func (*HistoryDecoder) Decode ¶
func (hd *HistoryDecoder) Decode() ([]Item, error)
Click to show internal directories.
Click to hide internal directories.