summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-26 00:15:28 +0800
committerxuri <xuri.me@gmail.com>2022-05-26 00:15:28 +0800
commit1c167b96a35a58990f777025914283b492d0785f (patch)
tree9d9aade7ad8da581c220c7fb7806a9f8bf9748b2 /sheet.go
parentafb2d27c90130878b82a70b44ccb4e30344cc09e (diff)
Improves the calculation engine, docs update, and adds the dependabot
- Initialize array formula support for the formula calculation engine - Update example and unit test of `AddPivotTable` - Update the supported hash algorithm of ProtectSheet
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/sheet.go b/sheet.go
index 1c17f78..47a2063 100644
--- a/sheet.go
+++ b/sheet.go
@@ -1069,12 +1069,12 @@ func (f *File) SetHeaderFooter(sheet string, settings *FormatHeaderFooter) error
return err
}
-// ProtectSheet provides a function to prevent other users from accidentally
-// or deliberately changing, moving, or deleting data in a worksheet. The
+// ProtectSheet provides a function to prevent other users from accidentally or
+// deliberately changing, moving, or deleting data in a worksheet. The
// optional field AlgorithmName specified hash algorithm, support XOR, MD4,
-// MD5, SHA1, SHA256, SHA384, and SHA512 currently, if no hash algorithm
-// specified, will be using the XOR algorithm as default. For example,
-// protect Sheet1 with protection settings:
+// MD5, SHA-1, SHA2-56, SHA-384, and SHA-512 currently, if no hash algorithm
+// specified, will be using the XOR algorithm as default. For example, protect
+// Sheet1 with protection settings:
//
// err := f.ProtectSheet("Sheet1", &excelize.FormatSheetProtection{
// AlgorithmName: "SHA-512",