summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-29 19:37:10 +0800
committerxuri <xuri.me@gmail.com>2022-05-29 19:37:10 +0800
commit7a6d5f5ebe5fa9b74ec58b79baf79b369d496e21 (patch)
treeda761d89ba9c8eb4a78a69770532a1c87c255e4a /file.go
parent551b83afab85f2911410a6fa994fe5cc883d8804 (diff)
This initialized support for encryption workbook by password, ref #199
- Remove exported variable `ErrEncrypt`
Diffstat (limited to 'file.go')
-rw-r--r--file.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.go b/file.go
index ecdadf4..5931bdb 100644
--- a/file.go
+++ b/file.go
@@ -60,6 +60,9 @@ func (f *File) Save() error {
if f.Path == "" {
return ErrSave
}
+ if f.options != nil {
+ return f.SaveAs(f.Path, *f.options)
+ }
return f.SaveAs(f.Path)
}