diff options
Diffstat (limited to 'src/history.go')
-rw-r--r-- | src/history.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/history.go b/src/history.go index 66159ebe..4aa87fc8 100644 --- a/src/history.go +++ b/src/history.go @@ -7,6 +7,7 @@ import ( "strings" ) +// History struct represents input history type History struct { path string lines []string @@ -15,6 +16,7 @@ type History struct { cursor int } +// NewHistory returns the pointer to a new History struct func NewHistory(path string, maxSize int) (*History, error) { fmtError := func(e error) error { if os.IsPermission(e) { |