mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-12-16 02:50:16 +00:00
init
This commit is contained in:
13
parser/base64.go
Normal file
13
parser/base64.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user