From 7a6d5f5ebe5fa9b74ec58b79baf79b369d496e21 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 29 May 2022 19:37:10 +0800 Subject: This initialized support for encryption workbook by password, ref #199 - Remove exported variable `ErrEncrypt` --- file.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'file.go') 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) } -- cgit v1.2.1