From 8da787eb77085b60950c1ef2bc1150f88b1794bc Mon Sep 17 00:00:00 2001 From: Clark Than Date: Fri, 11 Apr 2025 19:13:06 +0800 Subject: [PATCH] update some code style: + fix typo: PreSingedXXX -> PreSignedXXX + update import stmt style --- tos/check_test.go | 3 +-- tos/client.go | 13 +++++++------ tos/object.go | 3 ++- tos/tests/anonymous_test.go | 8 +++++--- tos/tests/bucket_tag_test.go | 4 +++- tos/tests/callback_test.go | 6 ++++-- tos/tests/connect_test.go | 1 + tos/tests/cors_test.go | 1 + tos/tests/custom_domain_test.go | 8 +++++--- tos/tests/dns_cache_test.go | 1 + tos/tests/encryption_test.go | 4 +++- tos/tests/env.go | 1 + tos/tests/fetch_test.go | 1 + tos/tests/hns_test.go | 8 +++++--- tos/tests/lifecycle_test.go | 1 + tos/tests/list_object_test.go | 6 ++++-- tos/tests/mirror_back_test.go | 1 + tos/tests/notification_test.go | 1 + tos/tests/object_test.go | 2 +- tos/tests/parse_output_test.go | 8 +++++--- tos/tests/policy_test.go | 1 + tos/tests/presigned_test.go | 16 ++++++++-------- tos/tests/qos_policy_test.go | 4 +++- tos/tests/realtime_log_test.go | 1 + tos/tests/rename_test.go | 6 ++++-- tos/tests/replication_test.go | 1 + tos/tests/resume_copy_test.go | 1 + tos/tests/symlink_test.go | 8 +++++--- tos/tests/tagging_test.go | 1 + tos/tests/website_test.go | 1 + tos/type.go | 12 ++++++------ 31 files changed, 85 insertions(+), 48 deletions(-) diff --git a/tos/check_test.go b/tos/check_test.go index b1e46e1..d3c1833 100644 --- a/tos/check_test.go +++ b/tos/check_test.go @@ -7,10 +7,9 @@ import ( "strings" "testing" + "github.com/stretchr/testify/require" "golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/transform" - - "github.com/stretchr/testify/require" ) func TestIsValidBucketName(t *testing.T) { diff --git a/tos/client.go b/tos/client.go index f17fb09..122c804 100644 --- a/tos/client.go +++ b/tos/client.go @@ -8,7 +8,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "net" "net/http" "net/url" @@ -17,6 +16,8 @@ import ( "strings" "sync" "time" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) const ( @@ -598,7 +599,7 @@ func (cli *ClientV2) PreSignedURL(input *PreSignedURLInput) (*PreSignedURLOutput return output, nil } -func (cli *ClientV2) PreSignedPostSignature(ctx context.Context, input *PreSingedPostSignatureInput) (*PreSingedPostSignatureOutput, error) { +func (cli *ClientV2) PreSignedPostSignature(ctx context.Context, input *PreSignedPostSignatureInput) (*PreSignedPostSignatureOutput, error) { algorithm := signPrefix postPolicy := make(map[string]interface{}) cred := cli.credentials.Credential() @@ -650,7 +651,7 @@ func (cli *ClientV2) PreSignedPostSignature(ctx context.Context, input *PreSinge Credential: &cred, }) policy := base64.StdEncoding.EncodeToString(originPolicy) - return &PreSingedPostSignatureOutput{ + return &PreSignedPostSignatureOutput{ OriginPolicy: string(originPolicy), Policy: policy, Algorithm: signPrefix, @@ -756,7 +757,7 @@ func (cli *ClientV2) PutFetchTaskV2(ctx context.Context, input *PutFetchTaskInpu return &output, nil } -func (cli *ClientV2) PreSignedPolicyURL(ctx context.Context, input *PreSingedPolicyURLInput) (*PreSingedPolicyURLOutput, error) { +func (cli *ClientV2) PreSignedPolicyURL(ctx context.Context, input *PreSignedPolicyURLInput) (*PreSignedPolicyURLOutput, error) { if err := isValidBucketName(input.Bucket, input.IsCustomDomain); err != nil { return nil, err @@ -771,7 +772,7 @@ func (cli *ClientV2) PreSignedPolicyURL(ctx context.Context, input *PreSingedPol } if cli.credentials == nil { - return &PreSingedPolicyURLOutput{ + return &PreSignedPolicyURLOutput{ bucket: input.Bucket, scheme: resScheme, host: resHost, @@ -866,7 +867,7 @@ func (cli *ClientV2) PreSignedPolicyURL(ctx context.Context, input *PreSingedPol rawQuery := query.Encode() // set scheme and host - return &PreSingedPolicyURLOutput{ + return &PreSignedPolicyURLOutput{ bucket: input.Bucket, SignatureQuery: rawQuery, scheme: resScheme, diff --git a/tos/object.go b/tos/object.go index 0eaee9d..e065c18 100644 --- a/tos/object.go +++ b/tos/object.go @@ -5,7 +5,6 @@ import ( "context" "errors" "fmt" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "hash" "io" "io/ioutil" @@ -14,6 +13,8 @@ import ( "path/filepath" "strconv" "time" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) type Bucket struct { diff --git a/tos/tests/anonymous_test.go b/tos/tests/anonymous_test.go index 01f6fcf..e8c2d29 100644 --- a/tos/tests/anonymous_test.go +++ b/tos/tests/anonymous_test.go @@ -4,12 +4,14 @@ import ( "context" "encoding/json" "fmt" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "net/http" "strings" "testing" "time" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) func TestAnonymous(t *testing.T) { @@ -132,7 +134,7 @@ func TestAnonymous(t *testing.T) { require.Nil(t, err) require.Equal(t, resp.StatusCode, 200) operatorEq := "eq" - policyUrl, err := client.PreSignedPolicyURL(context.Background(), &tos.PreSingedPolicyURLInput{ + policyUrl, err := client.PreSignedPolicyURL(context.Background(), &tos.PreSignedPolicyURLInput{ Bucket: bucket, Expires: 3600, Conditions: []tos.PolicySignatureCondition{{ diff --git a/tos/tests/bucket_tag_test.go b/tos/tests/bucket_tag_test.go index 458e683..99149e1 100644 --- a/tos/tests/bucket_tag_test.go +++ b/tos/tests/bucket_tag_test.go @@ -2,9 +2,11 @@ package tests import ( "context" + "testing" + "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "testing" ) func TestBktTagging(t *testing.T) { diff --git a/tos/tests/callback_test.go b/tos/tests/callback_test.go index 5c690d0..61800d3 100644 --- a/tos/tests/callback_test.go +++ b/tos/tests/callback_test.go @@ -3,12 +3,14 @@ package tests import ( "context" "encoding/base64" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "net/http" "os" "strings" "testing" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) type callback struct { diff --git a/tos/tests/connect_test.go b/tos/tests/connect_test.go index c6e4937..9edccc5 100644 --- a/tos/tests/connect_test.go +++ b/tos/tests/connect_test.go @@ -8,6 +8,7 @@ import ( "time" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/cors_test.go b/tos/tests/cors_test.go index 305eedf..a77b2d0 100644 --- a/tos/tests/cors_test.go +++ b/tos/tests/cors_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/codes" ) diff --git a/tos/tests/custom_domain_test.go b/tos/tests/custom_domain_test.go index 9888a3b..0d3d9f8 100644 --- a/tos/tests/custom_domain_test.go +++ b/tos/tests/custom_domain_test.go @@ -2,12 +2,14 @@ package tests import ( "context" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "net/http" "strings" "testing" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) func TestBucketCustomDomain(t *testing.T) { diff --git a/tos/tests/dns_cache_test.go b/tos/tests/dns_cache_test.go index 3f69b86..344774d 100644 --- a/tos/tests/dns_cache_test.go +++ b/tos/tests/dns_cache_test.go @@ -10,6 +10,7 @@ import ( "time" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/encryption_test.go b/tos/tests/encryption_test.go index 65f9087..68d2371 100644 --- a/tos/tests/encryption_test.go +++ b/tos/tests/encryption_test.go @@ -2,9 +2,11 @@ package tests import ( "context" + "testing" + "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "testing" ) func TestEncryption(t *testing.T) { diff --git a/tos/tests/env.go b/tos/tests/env.go index b29bd3d..9ffd577 100644 --- a/tos/tests/env.go +++ b/tos/tests/env.go @@ -7,6 +7,7 @@ import ( "github.com/sirupsen/logrus" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/fetch_test.go b/tos/tests/fetch_test.go index b9c8e12..bbf19cb 100644 --- a/tos/tests/fetch_test.go +++ b/tos/tests/fetch_test.go @@ -8,6 +8,7 @@ import ( "time" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/tests/hns_test.go b/tos/tests/hns_test.go index ab2538f..3537b67 100644 --- a/tos/tests/hns_test.go +++ b/tos/tests/hns_test.go @@ -3,14 +3,16 @@ package tests import ( "context" "encoding/json" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "io/ioutil" "net/http" "strings" "testing" "time" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) type Trash struct { diff --git a/tos/tests/lifecycle_test.go b/tos/tests/lifecycle_test.go index 2e0897e..5980fe3 100644 --- a/tos/tests/lifecycle_test.go +++ b/tos/tests/lifecycle_test.go @@ -6,6 +6,7 @@ import ( "time" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/tests/list_object_test.go b/tos/tests/list_object_test.go index c98c882..b80d87e 100644 --- a/tos/tests/list_object_test.go +++ b/tos/tests/list_object_test.go @@ -3,11 +3,13 @@ package tests import ( "context" "fmt" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "net/http" "strings" "testing" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) func TestListObjWithMeta(t *testing.T) { diff --git a/tos/tests/mirror_back_test.go b/tos/tests/mirror_back_test.go index dbd9516..45c07eb 100644 --- a/tos/tests/mirror_back_test.go +++ b/tos/tests/mirror_back_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/tests/notification_test.go b/tos/tests/notification_test.go index 42a829c..18e8ff8 100644 --- a/tos/tests/notification_test.go +++ b/tos/tests/notification_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/object_test.go b/tos/tests/object_test.go index b098c3c..e4fe494 100644 --- a/tos/tests/object_test.go +++ b/tos/tests/object_test.go @@ -8,7 +8,6 @@ import ( "encoding/hex" "errors" "fmt" - "github.com/sirupsen/logrus" "io" "io/ioutil" "math/rand" @@ -21,6 +20,7 @@ import ( "testing" "time" + "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tos/tests/parse_output_test.go b/tos/tests/parse_output_test.go index de2ac59..5311898 100644 --- a/tos/tests/parse_output_test.go +++ b/tos/tests/parse_output_test.go @@ -2,11 +2,13 @@ package tests import ( "context" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "net/http" "strings" "testing" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) func TestParseOutput(t *testing.T) { @@ -49,7 +51,7 @@ func TestParseOutput(t *testing.T) { // build policy url operatorSw := "starts-with" operatorEq := "eq" - output, err := cli.PreSignedPolicyURL(ctx, &tos.PreSingedPolicyURLInput{ + output, err := cli.PreSignedPolicyURL(ctx, &tos.PreSignedPolicyURLInput{ Bucket: bucket, Expires: 1000, Conditions: []tos.PolicySignatureCondition{{ diff --git a/tos/tests/policy_test.go b/tos/tests/policy_test.go index beedcf9..d4970c3 100644 --- a/tos/tests/policy_test.go +++ b/tos/tests/policy_test.go @@ -7,6 +7,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/presigned_test.go b/tos/tests/presigned_test.go index 648df0d..c73154b 100644 --- a/tos/tests/presigned_test.go +++ b/tos/tests/presigned_test.go @@ -17,9 +17,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "github.com/volcengine/ve-tos-golang-sdk/v2/tos" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) func TestPreSignedURLWithExpires(t *testing.T) { @@ -353,7 +353,7 @@ func TestPreSignedURLEndpoint(t *testing.T) { require.Equal(t, 200, res.StatusCode) } -func newPostRequest(bucket, key string, endpoint string, acl enum.ACLType, input *tos.PreSingedPostSignatureOutput) (*http.Request, string, error) { +func newPostRequest(bucket, key string, endpoint string, acl enum.ACLType, input *tos.PreSignedPostSignatureOutput) (*http.Request, string, error) { url := fmt.Sprintf("http://%s.%s", bucket, endpoint) body := new(bytes.Buffer) w := multipart.NewWriter(body) @@ -391,7 +391,7 @@ func TestPreSignedPostSignature(t *testing.T) { ) defer cleanBucket(t, cli, bucket) // base upload - res, err := cli.PreSignedPostSignature(ctx, &tos.PreSingedPostSignatureInput{ + res, err := cli.PreSignedPostSignature(ctx, &tos.PreSignedPostSignatureInput{ Bucket: bucket, Key: key, Expires: 3600, @@ -417,7 +417,7 @@ func TestPreSignedPostSignature(t *testing.T) { // with content length range key = randomString(6) - res, err = cli.PreSignedPostSignature(ctx, &tos.PreSingedPostSignatureInput{ + res, err = cli.PreSignedPostSignature(ctx, &tos.PreSignedPostSignatureInput{ Bucket: bucket, Key: key, Expires: 3600, @@ -439,7 +439,7 @@ func TestPreSignedPostSignature(t *testing.T) { assert.Equal(t, md5s(string(data)), md5) // expires - res, err = cli.PreSignedPostSignature(ctx, &tos.PreSingedPostSignatureInput{ + res, err = cli.PreSignedPostSignature(ctx, &tos.PreSignedPostSignatureInput{ Bucket: bucket, Key: key, Expires: 1, @@ -454,7 +454,7 @@ func TestPreSignedPostSignature(t *testing.T) { // exceed content range key = randomString(6) - res, err = cli.PreSignedPostSignature(ctx, &tos.PreSingedPostSignatureInput{ + res, err = cli.PreSignedPostSignature(ctx, &tos.PreSignedPostSignatureInput{ Bucket: bucket, Key: key, Expires: 3600, @@ -487,7 +487,7 @@ func TestPreSignedPostSignatureWithCondition(t *testing.T) { key := keyPrefix + randomString(6) operator := "starts-with" - res, err := cli.PreSignedPostSignature(ctx, &tos.PreSingedPostSignatureInput{ + res, err := cli.PreSignedPostSignature(ctx, &tos.PreSignedPostSignatureInput{ Bucket: bucket, Key: key, Expires: 3600, @@ -568,7 +568,7 @@ func TestPreSignedPolicyURLWithExpires(t *testing.T) { // build policy url operatorSw := "starts-with" operatorEq := "eq" - output, err := cli.PreSignedPolicyURL(ctx, &tos.PreSingedPolicyURLInput{ + output, err := cli.PreSignedPolicyURL(ctx, &tos.PreSignedPolicyURLInput{ Bucket: bucket, Expires: 1000, Conditions: []tos.PolicySignatureCondition{{ diff --git a/tos/tests/qos_policy_test.go b/tos/tests/qos_policy_test.go index 619d87a..51dbfe6 100644 --- a/tos/tests/qos_policy_test.go +++ b/tos/tests/qos_policy_test.go @@ -3,9 +3,11 @@ package tests import ( "context" "encoding/json" + "testing" + "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "testing" ) type TestQuota struct { diff --git a/tos/tests/realtime_log_test.go b/tos/tests/realtime_log_test.go index 5f2e669..5dc2433 100644 --- a/tos/tests/realtime_log_test.go +++ b/tos/tests/realtime_log_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/rename_test.go b/tos/tests/rename_test.go index 9f4f055..2b04280 100644 --- a/tos/tests/rename_test.go +++ b/tos/tests/rename_test.go @@ -2,13 +2,15 @@ package tests import ( "context" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "io/ioutil" "net/http" "strings" "testing" "time" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) func TestBucketRename(t *testing.T) { diff --git a/tos/tests/replication_test.go b/tos/tests/replication_test.go index c6ee865..1404ecd 100644 --- a/tos/tests/replication_test.go +++ b/tos/tests/replication_test.go @@ -7,6 +7,7 @@ import ( "github.com/sirupsen/logrus" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/tests/resume_copy_test.go b/tos/tests/resume_copy_test.go index c471cfc..00e3195 100644 --- a/tos/tests/resume_copy_test.go +++ b/tos/tests/resume_copy_test.go @@ -7,6 +7,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/tests/symlink_test.go b/tos/tests/symlink_test.go index 40cff19..ded185c 100644 --- a/tos/tests/symlink_test.go +++ b/tos/tests/symlink_test.go @@ -2,13 +2,15 @@ package tests import ( "context" - "github.com/stretchr/testify/require" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos" - "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" "io/ioutil" "strings" "testing" "time" + + "github.com/stretchr/testify/require" + + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) func TestSoftSymlink(t *testing.T) { diff --git a/tos/tests/tagging_test.go b/tos/tests/tagging_test.go index 4485ae1..52af5f8 100644 --- a/tos/tests/tagging_test.go +++ b/tos/tests/tagging_test.go @@ -7,6 +7,7 @@ import ( "time" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" ) diff --git a/tos/tests/website_test.go b/tos/tests/website_test.go index 6abc4c0..a1dd4e0 100644 --- a/tos/tests/website_test.go +++ b/tos/tests/website_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/volcengine/ve-tos-golang-sdk/v2/tos" "github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum" ) diff --git a/tos/type.go b/tos/type.go index 94c6863..187bb2f 100644 --- a/tos/type.go +++ b/tos/type.go @@ -217,7 +217,7 @@ type FetchObjectOutputV2 struct { SSECKeyMD5 string `json:"SSECKeyMD5,omitempty"` } -type PreSingedPostSignatureInput struct { +type PreSignedPostSignatureInput struct { Bucket string Key string Expires int64 @@ -225,7 +225,7 @@ type PreSingedPostSignatureInput struct { ContentLengthRange *ContentLengthRange } -type PreSingedPostSignatureOutput struct { +type PreSignedPostSignatureOutput struct { OriginPolicy string Policy string Algorithm string @@ -245,7 +245,7 @@ type PostSignatureCondition struct { Operator *string } -type PreSingedPolicyURLInput struct { +type PreSignedPolicyURLInput struct { Bucket string Expires int64 Conditions []PolicySignatureCondition @@ -253,7 +253,7 @@ type PreSingedPolicyURLInput struct { IsCustomDomain bool } -type PreSingedPolicyURLOutput struct { +type PreSignedPolicyURLOutput struct { PreSignedPolicyURLGenerator SignatureQuery string bucket string @@ -273,7 +273,7 @@ type PreSignedPolicyURLGenerator interface { GetSignedURLForGetOrHead(bucket, key string, additionalQuery map[string]string) string } -func (output *PreSingedPolicyURLOutput) GetSignedURLForList(additionalQuery map[string]string) string { +func (output *PreSignedPolicyURLOutput) GetSignedURLForList(additionalQuery map[string]string) string { query := make(url.Values) for k, v := range additionalQuery { query.Add(k, v) @@ -291,7 +291,7 @@ func (output *PreSingedPolicyURLOutput) GetSignedURLForList(additionalQuery map[ str := fmt.Sprintf("%s://%s/?%s%s", output.scheme, domain, output.SignatureQuery, queryStr) return str } -func (output *PreSingedPolicyURLOutput) GetSignedURLForGetOrHead(key string, additionalQuery map[string]string) string { +func (output *PreSignedPolicyURLOutput) GetSignedURLForGetOrHead(key string, additionalQuery map[string]string) string { query := make(url.Values) for k, v := range additionalQuery { query.Add(k, v)