Skip to content

Commit 4c92dd7

Browse files
committed
feat: upt
1 parent 651f50b commit 4c92dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base64.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"encoding/base64"
77
)
88

9-
// 对字符串进行Base64编码
9+
// Base64Encode 对字符串进行Base64编码
1010
func Base64Encode(str string) string {
1111
return base64.StdEncoding.EncodeToString([]byte(str))
1212
}
1313

14-
// 对字符串进行Base64解码
14+
// Base64Decode 对字符串进行Base64解码
1515
func Base64Decode(str string) (string, error) {
1616
data, err := base64.StdEncoding.DecodeString(str)
1717
if err != nil {

0 commit comments

Comments
 (0)