summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/excelize.go b/excelize.go
index 04e2e85..3fd25aa 100644
--- a/excelize.go
+++ b/excelize.go
@@ -28,7 +28,7 @@ import (
"golang.org/x/net/html/charset"
)
-// File define a populated XLSX file struct.
+// File define a populated spreadsheet file struct.
type File struct {
checked map[string]bool
sheetMap map[string]string
@@ -52,8 +52,8 @@ type File struct {
type charsetTranscoderFn func(charset string, input io.Reader) (rdr io.Reader, err error)
-// OpenFile take the name of an XLSX file and returns a populated XLSX file
-// struct for it.
+// OpenFile take the name of an spreadsheet file and returns a populated
+// spreadsheet file struct for it.
func OpenFile(filename string) (*File, error) {
file, err := os.Open(filename)
if err != nil {
@@ -83,7 +83,8 @@ func newFile() *File {
}
}
-// OpenReader take an io.Reader and return a populated XLSX file.
+// OpenReader read data stream from io.Reader and return a populated
+// spreadsheet file.
func OpenReader(r io.Reader) (*File, error) {
b, err := ioutil.ReadAll(r)
if err != nil {