refactor: extract path logic to path.go and run go fmt on codebase

This commit is contained in:
duorameng
2026-05-22 14:52:51 +08:00
parent b6fd889661
commit 4c283a60d5
55 changed files with 409 additions and 420 deletions
+2 -2
View File
@@ -34,14 +34,14 @@ func CompressToBase64(data string) (string, error) {
var buf bytes.Buffer
zw := GetZlibWriter(&buf)
defer PutZlibWriter(zw)
if _, err := zw.Write([]byte(data)); err != nil {
return "", err
}
if err := zw.Close(); err != nil {
return "", err
}
return base64.StdEncoding.EncodeToString(buf.Bytes()), nil
}