Documentation
¶
Overview ¶
Package history persists REPL input between sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSensitive ¶
IsSensitive reports whether a statement should be kept out of the history because it probably contains credentials. This is a heuristic; starting a line with a space keeps anything out for certain.
Types ¶
type History ¶
type History struct {
// contains filtered or unexported fields
}
History is an append-only log of executed inputs, one entry per line with newlines escaped, stored with owner-only permissions.
func Open ¶
Open loads the history file at path, keeping at most max entries. A missing file is an empty history. When the file has grown well past max it is compacted.
Click to show internal directories.
Click to hide internal directories.