added download certificate and key in zip format
Build / Build (push) Successful in 16s

This commit is contained in:
wt committed 2025-07-24 15:01:04 +07:00
1 parent 4cce5754d3
commit 0f777d3e68
8 files changed
+333 -213

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package utils
import (
"archive/zip"
"os"
)
func AddFileToZipWithName(zipWriter *zip.Writer, filePath, fileName string) error {
data, err := os.ReadFile(filePath)
if err != nil {
return err
}
f, err := zipWriter.Create(fileName)
if err != nil {
return err
}
_, err = f.Write(data)
return err
}