diff options
author | xuri <xuri.me@gmail.com> | 2022-05-29 19:37:10 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-05-29 19:37:10 +0800 |
commit | 7a6d5f5ebe5fa9b74ec58b79baf79b369d496e21 (patch) | |
tree | da761d89ba9c8eb4a78a69770532a1c87c255e4a /file.go | |
parent | 551b83afab85f2911410a6fa994fe5cc883d8804 (diff) |
This initialized support for encryption workbook by password, ref #199
- Remove exported variable `ErrEncrypt`
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) } |