diff options
author | xuri <xuri.me@gmail.com> | 2020-05-21 22:57:58 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-05-21 22:57:58 +0800 |
commit | 2efc7107ff30dc7f1e1a798082616ee488f99489 (patch) | |
tree | 80ea9e1e9f9246369685acabd0e5dac8271e7d97 /excelize.go | |
parent | 98221a332ff9c37c9b20c44e9efdbe4c22a5cf5c (diff) |
- transform the range to the matrix on the first arg of the formula
- typo fix
- reset cell with and height when insert picture into merged cell with autofit
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 9 |
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 { |