diff --git a/string.go b/string.go index ff3c6c4..3007569 100644 --- a/string.go +++ b/string.go @@ -14,6 +14,8 @@ func timeToString(currentTime time.Time) string { func osfileToSting(currentOsFile *os.File) string { file, err := os.Open(currentOsFile.Name()) + defer file.Close() + fileinfo, err := file.Stat() if err != nil {