summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-09-12 15:47:56 +0800
committerxuri <xuri.me@gmail.com>2018-09-12 15:47:56 +0800
commitb4a6e61ec34d4a0db1110907cc969f0d7d38991a (patch)
tree3200bb65c2f0c58ef009c9b151801dc14f16faf0 /file.go
parent99c9d04f67c0c835b5d884ac229b1883afbb9d03 (diff)
Fix golint errors under confidence 0.1
Diffstat (limited to 'file.go')
-rw-r--r--file.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/file.go b/file.go
index a45fc28..76ef986 100644
--- a/file.go
+++ b/file.go
@@ -1,3 +1,11 @@
+// Package excelize providing a set of functions that allow you to write to
+// and read from XLSX files. Support reads and writes XLSX file generated by
+// Microsoft Excelâ„¢ 2007 and later. Support save file without losing original
+// charts of XLSX. This library needs Go version 1.8 or later.
+//
+// Copyright 2016 - 2018 The excelize Authors. All rights reserved. Use of
+// this source code is governed by a BSD-style license that can be found in
+// the LICENSE file.
package excelize
import (
@@ -43,7 +51,7 @@ func NewFile() *File {
// Save provides a function to override the xlsx file with origin path.
func (f *File) Save() error {
if f.Path == "" {
- return fmt.Errorf("No path defined for file, consider File.WriteTo or File.Write")
+ return fmt.Errorf("no path defined for file, consider File.WriteTo or File.Write")
}
return f.SaveAs(f.Path)
}