diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-02 13:06:15 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-02 13:11:59 +0900 |
commit | 634670e3ea51a2fa1498a3de0c074b819828e2d8 (patch) | |
tree | 6402741aa9c0fb35fa2e014bc03d4b788557253f /src/history.go | |
parent | dea60b11bca22f4bf886ae7026bac44521038010 (diff) |
Lint
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) { |