feat: 节点删除\重命名\去重

This commit is contained in:
2024-03-11 23:39:58 +08:00
parent daa3ab6867
commit 043167cccf
25 changed files with 288 additions and 205 deletions

View File

@@ -1,18 +0,0 @@
package util
import (
"encoding/base64"
"strings"
)
func DecodeBase64(s string) (string, error) {
s = strings.TrimSpace(s)
if len(s)%4 != 0 {
s += strings.Repeat("=", 4-len(s)%4)
}
decodeStr, err := base64.StdEncoding.DecodeString(s)
if err != nil {
return "", err
}
return string(decodeStr), nil
}