summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
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)
}