1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2025-12-16 02:50:16 +00:00
This commit is contained in:
2023-09-12 18:40:24 +08:00
commit d894fea89e
25 changed files with 2179 additions and 0 deletions

13
parser/base64.go Normal file
View File

@@ -0,0 +1,13 @@
package parser
import (
"encoding/base64"
)
func DecodeBase64(s string) (string, error) {
decodeStr, err := base64.StdEncoding.DecodeString(s)
if err != nil {
return "", err
}
return string(decodeStr), nil
}