From 634670e3ea51a2fa1498a3de0c074b819828e2d8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 2 Aug 2015 13:06:15 +0900 Subject: Lint --- src/history.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/history.go') 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) { -- cgit v1.2.3