From fb1aab7add52808c96c9cc10570fe73ce797b7f4 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 8 Sep 2022 22:20:21 +0800 Subject: This closes #744, the `Save`, `Write` and `WriteTo` function accept saving options --- crypt_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypt_test.go') diff --git a/crypt_test.go b/crypt_test.go index f7c465e..95b6f52 100644 --- a/crypt_test.go +++ b/crypt_test.go @@ -48,6 +48,8 @@ func TestEncrypt(t *testing.T) { cell, err = f.GetCellValue("Sheet1", "A1") assert.NoError(t, err) assert.Equal(t, "SECRET", cell) + // Test remove password by save workbook with options + assert.NoError(t, f.Save(Options{Password: ""})) assert.NoError(t, f.Close()) } -- cgit v1.2.1