✏️ Capitalize Base64 and JSON in descriptions

This commit is contained in:
OpenWaygate committed 2026-06-21 01:49:46 +08:00
1 parent 4cb0fa4f76
commit 6588fe5d7e
9 files changed
+31 -31

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ func WithCredential(cred string, fsys fs.FS) Option {
cred = s.credFile
}
// 1. cred is a file path
// 2. cred is a base64 encoded string
// 2. cred is a Base64 encoded string
// 3. cred is a JSON string
absCred, _ := filepath.Abs(cred)
relCred, _ := filepath.Rel(*pkg.RootDir, absCred)
@@ -124,7 +124,7 @@ func WithCacheToken(token string, fsys fs.FS) Option {
}
// 1. token is a file path
// 2. token is a base64 encoded string
// 2. token is a Base64 encoded string
// 3. token is a JSON string
absToken, _ := filepath.Abs(token)
relToken, _ := filepath.Rel(*pkg.RootDir, absToken)
+1 -1
View File
@@ -64,7 +64,7 @@ func TestNewY2BService(t *testing.T) {
},
},
{
name: "with all options - base64",
name: "with all options - Base64",
args: args{
opts: []Option{
WithCredential(credB64, mockFS),