diff options
author | xuri <xuri.me@gmail.com> | 2020-11-10 23:48:09 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-11-11 01:03:56 +0800 |
commit | 2514bb16c682679485dfb5298e1a5797b97bdcd7 (patch) | |
tree | a53f0e7de3fa76b6462e2016e9a734cbd46b3a42 /file.go | |
parent | 5dd0b4aec2931079e064f1fb393b034ce4934540 (diff) |
Fix #724, standardize variable naming and update unit tests
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ import ( // NewFile provides a function to create new file by default template. For // example: // -// xlsx := NewFile() +// f := NewFile() // func NewFile() *File { file := make(map[string][]byte) @@ -54,7 +54,7 @@ func NewFile() *File { return f } -// Save provides a function to override the xlsx file with origin path. +// Save provides a function to override the spreadsheet 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") @@ -62,7 +62,7 @@ func (f *File) Save() error { return f.SaveAs(f.Path) } -// SaveAs provides a function to create or update to an xlsx file at the +// SaveAs provides a function to create or update to an spreadsheet at the // provided path. func (f *File) SaveAs(name string, opt ...Options) error { if len(name) > MaxFileNameLength { |