From 500d1ce01cb494a68fafb0fcf8e565971b95120d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 7 Dec 2021 15:45:15 -0800 Subject: [PATCH] remove EOLed support this library supports from go1.16 --- .github/workflows/go-windows.yml | 2 +- .github/workflows/go.yml | 2 +- CONTRIBUTING.md | 1 - README.md | 3 +-- examples/minio/getbucketreplicationmetrics.go | 1 + examples/minio/listen-notification.go | 1 + examples/minio/listenbucketnotification.go | 1 + examples/minio/putobjectsnowball.go | 1 + examples/s3/bucketexists.go | 1 + examples/s3/composeobject.go | 1 + examples/s3/copyobject-with-new-tags.go | 1 + examples/s3/copyobject.go | 1 + examples/s3/enableversioning.go | 1 + examples/s3/fgetobject.go | 1 + examples/s3/fputencrypted-object.go | 1 + examples/s3/fputobject.go | 1 + examples/s3/get-encrypted-object.go | 1 + examples/s3/getbucketencryption.go | 1 + examples/s3/getbucketlifecycle.go | 1 + examples/s3/getbucketnotification.go | 1 + examples/s3/getbucketpolicy.go | 1 + examples/s3/getbucketreplication.go | 1 + examples/s3/getbuckettagging.go | 1 + examples/s3/getbucketversioning.go | 1 + examples/s3/getobject-client-encryption.go | 1 + examples/s3/getobject.go | 1 + examples/s3/getobjectacl.go | 1 + examples/s3/getobjectlegalhold.go | 1 + examples/s3/getobjectlockconfig.go | 1 + examples/s3/getobjectretention.go | 1 + examples/s3/getobjecttagging.go | 1 + examples/s3/healthcheck.go | 1 + examples/s3/listbuckets.go | 1 + examples/s3/listincompleteuploads.go | 1 + examples/s3/listobjects-N.go | 1 + examples/s3/listobjects.go | 1 + examples/s3/listobjectsV2.go | 1 + examples/s3/listobjectsV2WithMetadata.go | 1 + examples/s3/listobjectversions.go | 1 + examples/s3/makebucket.go | 1 + examples/s3/presignedgetobject.go | 1 + examples/s3/presignedheadobject.go | 1 + examples/s3/presignedpostpolicy.go | 1 + examples/s3/presignedputobject.go | 1 + examples/s3/put-encrypted-object.go | 1 + examples/s3/putobject-client-encryption.go | 1 + examples/s3/putobject-getobject-sse.go | 1 + examples/s3/putobject-progress.go | 1 + examples/s3/putobject-s3-accelerate.go | 1 + examples/s3/putobject-streaming.go | 1 + examples/s3/putobject-with-tags.go | 1 + examples/s3/putobject.go | 1 + examples/s3/putobjectlegalhold.go | 1 + examples/s3/putobjectretention.go | 1 + examples/s3/putobjecttagging.go | 1 + examples/s3/removeallbucketnotification.go | 1 + examples/s3/removebucket.go | 1 + examples/s3/removebucketencryption.go | 1 + examples/s3/removebucketreplication.go | 1 + examples/s3/removebuckettagging.go | 1 + examples/s3/removeincompleteupload.go | 1 + examples/s3/removeobject.go | 1 + examples/s3/removeobjects.go | 1 + examples/s3/removeobjecttagging.go | 1 + examples/s3/restoreobject-select.go | 1 + examples/s3/restoreobject.go | 1 + examples/s3/selectobject.go | 1 + examples/s3/setbucketencryption.go | 1 + examples/s3/setbucketlifecycle.go | 1 + examples/s3/setbucketnotification.go | 1 + examples/s3/setbucketpolicy.go | 1 + examples/s3/setbucketreplication.go | 1 + examples/s3/setbuckettagging.go | 1 + examples/s3/setobjectlockconfig.go | 1 + examples/s3/statobject.go | 1 + examples/s3/suspendversioning.go | 1 + functional_tests.go | 1 + go.mod | 4 +--- go.sum | 7 ------- pkg/credentials/iam_aws_test.go | 1 + pkg/policy/bucket-policy_test.go | 1 + transport.go | 1 + 82 files changed, 80 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go-windows.yml b/.github/workflows/go-windows.yml index 53e565ce3..3d51ea2aa 100644 --- a/.github/workflows/go-windows.yml +++ b/.github/workflows/go-windows.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.15.x, 1.16.x, 1.17.x] + go-version: [1.16.x, 1.17.x] os: [windows-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cec537250..fd7c69eb0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.15.x, 1.16.x, 1.17.x] + go-version: [1.16.x, 1.17.x] os: [ubuntu-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8b1ee86c6..24522ef75 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,3 @@ - ### Developer Guidelines ``minio-go`` welcomes your contribution. To make the process as seamless as possible, we ask for the following: diff --git a/README.md b/README.md index 3ba174f46..211dd5e8c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This document assumes that you have a working [Go development environment](https ## Download from Github ```sh -GO111MODULE=on go get github.com/minio/minio-go/v7 +go get github.com/minio/minio-go/v7 ``` ## Initialize MinIO Client @@ -115,7 +115,6 @@ func main() { ### Run FileUploader ```sh -export GO111MODULE=on go run file-uploader.go 2016/08/13 17:03:28 Successfully created mymusic 2016/08/13 17:03:40 Successfully uploaded golden-oldies.zip of size 16253413 diff --git a/examples/minio/getbucketreplicationmetrics.go b/examples/minio/getbucketreplicationmetrics.go index 6b50f1b75..1f8b47ed6 100644 --- a/examples/minio/getbucketreplicationmetrics.go +++ b/examples/minio/getbucketreplicationmetrics.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/minio/listen-notification.go b/examples/minio/listen-notification.go index 260ac47a8..9ed0ae54c 100644 --- a/examples/minio/listen-notification.go +++ b/examples/minio/listen-notification.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/minio/listenbucketnotification.go b/examples/minio/listenbucketnotification.go index a4b95f823..abc5b0451 100644 --- a/examples/minio/listenbucketnotification.go +++ b/examples/minio/listenbucketnotification.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/minio/putobjectsnowball.go b/examples/minio/putobjectsnowball.go index 467809b53..4b8a6d7a3 100644 --- a/examples/minio/putobjectsnowball.go +++ b/examples/minio/putobjectsnowball.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/bucketexists.go b/examples/s3/bucketexists.go index 1ab3a8b66..0cee0c518 100644 --- a/examples/s3/bucketexists.go +++ b/examples/s3/bucketexists.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/composeobject.go b/examples/s3/composeobject.go index af9b2b38f..6695c2436 100644 --- a/examples/s3/composeobject.go +++ b/examples/s3/composeobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/copyobject-with-new-tags.go b/examples/s3/copyobject-with-new-tags.go index 297afa554..aa091c611 100644 --- a/examples/s3/copyobject-with-new-tags.go +++ b/examples/s3/copyobject-with-new-tags.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/copyobject.go b/examples/s3/copyobject.go index 73e38b3b7..cd8143f8d 100644 --- a/examples/s3/copyobject.go +++ b/examples/s3/copyobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/enableversioning.go b/examples/s3/enableversioning.go index e89cb22a6..20a597737 100644 --- a/examples/s3/enableversioning.go +++ b/examples/s3/enableversioning.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/fgetobject.go b/examples/s3/fgetobject.go index 31541e7b8..f0ebbc53a 100644 --- a/examples/s3/fgetobject.go +++ b/examples/s3/fgetobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/fputencrypted-object.go b/examples/s3/fputencrypted-object.go index 62a441ccb..e3f2338bc 100644 --- a/examples/s3/fputencrypted-object.go +++ b/examples/s3/fputencrypted-object.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/fputobject.go b/examples/s3/fputobject.go index 68ba5ff5c..5ae9d510b 100644 --- a/examples/s3/fputobject.go +++ b/examples/s3/fputobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/get-encrypted-object.go b/examples/s3/get-encrypted-object.go index e558efc06..017509798 100644 --- a/examples/s3/get-encrypted-object.go +++ b/examples/s3/get-encrypted-object.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketencryption.go b/examples/s3/getbucketencryption.go index 4c1f687b7..b630d4f3b 100644 --- a/examples/s3/getbucketencryption.go +++ b/examples/s3/getbucketencryption.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketlifecycle.go b/examples/s3/getbucketlifecycle.go index c98e40381..6303d5a5e 100644 --- a/examples/s3/getbucketlifecycle.go +++ b/examples/s3/getbucketlifecycle.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketnotification.go b/examples/s3/getbucketnotification.go index e756bdcfe..33f351f04 100644 --- a/examples/s3/getbucketnotification.go +++ b/examples/s3/getbucketnotification.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketpolicy.go b/examples/s3/getbucketpolicy.go index 3345cca5f..bf15ae352 100644 --- a/examples/s3/getbucketpolicy.go +++ b/examples/s3/getbucketpolicy.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketreplication.go b/examples/s3/getbucketreplication.go index 59b35cbab..fd4b6d063 100644 --- a/examples/s3/getbucketreplication.go +++ b/examples/s3/getbucketreplication.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbuckettagging.go b/examples/s3/getbuckettagging.go index f5aec9bf9..4c09bef30 100644 --- a/examples/s3/getbuckettagging.go +++ b/examples/s3/getbuckettagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getbucketversioning.go b/examples/s3/getbucketversioning.go index 5fbe2da56..121554a51 100644 --- a/examples/s3/getbucketversioning.go +++ b/examples/s3/getbucketversioning.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobject-client-encryption.go b/examples/s3/getobject-client-encryption.go index 871cda386..8fa20e25e 100644 --- a/examples/s3/getobject-client-encryption.go +++ b/examples/s3/getobject-client-encryption.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobject.go b/examples/s3/getobject.go index 133c90a3c..a0e90b658 100644 --- a/examples/s3/getobject.go +++ b/examples/s3/getobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobjectacl.go b/examples/s3/getobjectacl.go index 6ddee39e6..77c4f0b24 100644 --- a/examples/s3/getobjectacl.go +++ b/examples/s3/getobjectacl.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobjectlegalhold.go b/examples/s3/getobjectlegalhold.go index 6ab2fe008..a514389a7 100644 --- a/examples/s3/getobjectlegalhold.go +++ b/examples/s3/getobjectlegalhold.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobjectlockconfig.go b/examples/s3/getobjectlockconfig.go index 17569b7c8..a13e93968 100644 --- a/examples/s3/getobjectlockconfig.go +++ b/examples/s3/getobjectlockconfig.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobjectretention.go b/examples/s3/getobjectretention.go index aabfb05e3..55e7011aa 100644 --- a/examples/s3/getobjectretention.go +++ b/examples/s3/getobjectretention.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/getobjecttagging.go b/examples/s3/getobjecttagging.go index 81ab377e6..65e82a238 100644 --- a/examples/s3/getobjecttagging.go +++ b/examples/s3/getobjecttagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/healthcheck.go b/examples/s3/healthcheck.go index 94b833d9d..ffeae7de1 100644 --- a/examples/s3/healthcheck.go +++ b/examples/s3/healthcheck.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore /* diff --git a/examples/s3/listbuckets.go b/examples/s3/listbuckets.go index d1ac603de..d438592ec 100644 --- a/examples/s3/listbuckets.go +++ b/examples/s3/listbuckets.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listincompleteuploads.go b/examples/s3/listincompleteuploads.go index edb1c2fd4..7c0360fe0 100644 --- a/examples/s3/listincompleteuploads.go +++ b/examples/s3/listincompleteuploads.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listobjects-N.go b/examples/s3/listobjects-N.go index e534b78cf..1dfaaf019 100644 --- a/examples/s3/listobjects-N.go +++ b/examples/s3/listobjects-N.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listobjects.go b/examples/s3/listobjects.go index 9f07bd650..4b46b0ab0 100644 --- a/examples/s3/listobjects.go +++ b/examples/s3/listobjects.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listobjectsV2.go b/examples/s3/listobjectsV2.go index f904619a6..1988436cb 100644 --- a/examples/s3/listobjectsV2.go +++ b/examples/s3/listobjectsV2.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listobjectsV2WithMetadata.go b/examples/s3/listobjectsV2WithMetadata.go index 119e9d845..94d1730e0 100644 --- a/examples/s3/listobjectsV2WithMetadata.go +++ b/examples/s3/listobjectsV2WithMetadata.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/listobjectversions.go b/examples/s3/listobjectversions.go index b14aa76ad..894b3fa62 100644 --- a/examples/s3/listobjectversions.go +++ b/examples/s3/listobjectversions.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/makebucket.go b/examples/s3/makebucket.go index 218e9df39..82e64f056 100644 --- a/examples/s3/makebucket.go +++ b/examples/s3/makebucket.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/presignedgetobject.go b/examples/s3/presignedgetobject.go index ef5a90812..a4b5a4570 100644 --- a/examples/s3/presignedgetobject.go +++ b/examples/s3/presignedgetobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/presignedheadobject.go b/examples/s3/presignedheadobject.go index 3c59cd56a..d710701be 100644 --- a/examples/s3/presignedheadobject.go +++ b/examples/s3/presignedheadobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/presignedpostpolicy.go b/examples/s3/presignedpostpolicy.go index 3c9c51dba..2ce0ab6ba 100644 --- a/examples/s3/presignedpostpolicy.go +++ b/examples/s3/presignedpostpolicy.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/presignedputobject.go b/examples/s3/presignedputobject.go index fc29c8a6d..4459a5954 100644 --- a/examples/s3/presignedputobject.go +++ b/examples/s3/presignedputobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/put-encrypted-object.go b/examples/s3/put-encrypted-object.go index aa18bf79d..00caee122 100644 --- a/examples/s3/put-encrypted-object.go +++ b/examples/s3/put-encrypted-object.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-client-encryption.go b/examples/s3/putobject-client-encryption.go index ecdcd078a..df454e761 100644 --- a/examples/s3/putobject-client-encryption.go +++ b/examples/s3/putobject-client-encryption.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-getobject-sse.go b/examples/s3/putobject-getobject-sse.go index 4df33aca6..d334b32ec 100644 --- a/examples/s3/putobject-getobject-sse.go +++ b/examples/s3/putobject-getobject-sse.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-progress.go b/examples/s3/putobject-progress.go index fa2cd761f..d3e6aa0d2 100644 --- a/examples/s3/putobject-progress.go +++ b/examples/s3/putobject-progress.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-s3-accelerate.go b/examples/s3/putobject-s3-accelerate.go index 6d51d9600..7967af7e3 100644 --- a/examples/s3/putobject-s3-accelerate.go +++ b/examples/s3/putobject-s3-accelerate.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-streaming.go b/examples/s3/putobject-streaming.go index 4e79b7156..631dbd85c 100644 --- a/examples/s3/putobject-streaming.go +++ b/examples/s3/putobject-streaming.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject-with-tags.go b/examples/s3/putobject-with-tags.go index d39e9a93b..1606b9805 100644 --- a/examples/s3/putobject-with-tags.go +++ b/examples/s3/putobject-with-tags.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobject.go b/examples/s3/putobject.go index 7f94e86ae..1d73a1153 100644 --- a/examples/s3/putobject.go +++ b/examples/s3/putobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobjectlegalhold.go b/examples/s3/putobjectlegalhold.go index 828bad3f3..752850682 100644 --- a/examples/s3/putobjectlegalhold.go +++ b/examples/s3/putobjectlegalhold.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobjectretention.go b/examples/s3/putobjectretention.go index 7a62ad09f..c39fa2c3b 100644 --- a/examples/s3/putobjectretention.go +++ b/examples/s3/putobjectretention.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/putobjecttagging.go b/examples/s3/putobjecttagging.go index 806a25c57..d39ed9138 100644 --- a/examples/s3/putobjecttagging.go +++ b/examples/s3/putobjecttagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removeallbucketnotification.go b/examples/s3/removeallbucketnotification.go index af8399828..7eb8fc5f3 100644 --- a/examples/s3/removeallbucketnotification.go +++ b/examples/s3/removeallbucketnotification.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removebucket.go b/examples/s3/removebucket.go index 02f3af1f1..de1bfa344 100644 --- a/examples/s3/removebucket.go +++ b/examples/s3/removebucket.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removebucketencryption.go b/examples/s3/removebucketencryption.go index e0eafe1d8..52e718024 100644 --- a/examples/s3/removebucketencryption.go +++ b/examples/s3/removebucketencryption.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removebucketreplication.go b/examples/s3/removebucketreplication.go index 3e0b3c421..b0ba6e880 100644 --- a/examples/s3/removebucketreplication.go +++ b/examples/s3/removebucketreplication.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removebuckettagging.go b/examples/s3/removebuckettagging.go index 713dcce8b..5e47a25cc 100644 --- a/examples/s3/removebuckettagging.go +++ b/examples/s3/removebuckettagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removeincompleteupload.go b/examples/s3/removeincompleteupload.go index 02c785d6e..a93ee48f2 100644 --- a/examples/s3/removeincompleteupload.go +++ b/examples/s3/removeincompleteupload.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removeobject.go b/examples/s3/removeobject.go index ae8c42cb5..f1d01d343 100644 --- a/examples/s3/removeobject.go +++ b/examples/s3/removeobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removeobjects.go b/examples/s3/removeobjects.go index 26ce97879..be9818a6b 100644 --- a/examples/s3/removeobjects.go +++ b/examples/s3/removeobjects.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/removeobjecttagging.go b/examples/s3/removeobjecttagging.go index bd0b29151..46b7c7cf4 100644 --- a/examples/s3/removeobjecttagging.go +++ b/examples/s3/removeobjecttagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/restoreobject-select.go b/examples/s3/restoreobject-select.go index 55f5646b2..bbb37cefd 100644 --- a/examples/s3/restoreobject-select.go +++ b/examples/s3/restoreobject-select.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/restoreobject.go b/examples/s3/restoreobject.go index ada384024..82f24c0bc 100644 --- a/examples/s3/restoreobject.go +++ b/examples/s3/restoreobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/selectobject.go b/examples/s3/selectobject.go index 37106e051..d96447a95 100644 --- a/examples/s3/selectobject.go +++ b/examples/s3/selectobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbucketencryption.go b/examples/s3/setbucketencryption.go index 9732744d5..1d34b7e7a 100644 --- a/examples/s3/setbucketencryption.go +++ b/examples/s3/setbucketencryption.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbucketlifecycle.go b/examples/s3/setbucketlifecycle.go index 0284b9e97..a363d5cde 100644 --- a/examples/s3/setbucketlifecycle.go +++ b/examples/s3/setbucketlifecycle.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbucketnotification.go b/examples/s3/setbucketnotification.go index 9b83b4480..3a6a7468e 100644 --- a/examples/s3/setbucketnotification.go +++ b/examples/s3/setbucketnotification.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbucketpolicy.go b/examples/s3/setbucketpolicy.go index 964efe5d7..2abb3d530 100644 --- a/examples/s3/setbucketpolicy.go +++ b/examples/s3/setbucketpolicy.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbucketreplication.go b/examples/s3/setbucketreplication.go index 1569336fc..94640a0c3 100644 --- a/examples/s3/setbucketreplication.go +++ b/examples/s3/setbucketreplication.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setbuckettagging.go b/examples/s3/setbuckettagging.go index 7fb4817de..42a29b228 100644 --- a/examples/s3/setbuckettagging.go +++ b/examples/s3/setbuckettagging.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/setobjectlockconfig.go b/examples/s3/setobjectlockconfig.go index 08fc9270f..f02524ec9 100644 --- a/examples/s3/setobjectlockconfig.go +++ b/examples/s3/setobjectlockconfig.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/statobject.go b/examples/s3/statobject.go index 253c3a204..b8a0c913f 100644 --- a/examples/s3/statobject.go +++ b/examples/s3/statobject.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/examples/s3/suspendversioning.go b/examples/s3/suspendversioning.go index b0d0bcf60..77f7dbbbe 100644 --- a/examples/s3/suspendversioning.go +++ b/examples/s3/suspendversioning.go @@ -1,3 +1,4 @@ +//go:build example // +build example /* diff --git a/functional_tests.go b/functional_tests.go index b8950dd27..49c781f60 100644 --- a/functional_tests.go +++ b/functional_tests.go @@ -1,3 +1,4 @@ +//go:build mint // +build mint /* diff --git a/go.mod b/go.mod index e3d93ce2e..c07ec5497 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/minio/minio-go/v7 -go 1.15 +go 1.16 require ( github.com/dustin/go-humanize v1.0.0 @@ -8,7 +8,6 @@ require ( github.com/json-iterator/go v1.1.10 github.com/klauspost/compress v1.13.5 github.com/klauspost/cpuid v1.3.1 // indirect - github.com/kr/pretty v0.1.0 // indirect github.com/minio/md5-simd v1.1.0 github.com/minio/sha256-simd v0.1.1 github.com/mitchellh/go-homedir v1.1.0 @@ -22,7 +21,6 @@ require ( golang.org/x/net v0.0.0-20200707034311-ab3426394381 golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect golang.org/x/text v0.3.3 // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/ini.v1 v1.57.0 gopkg.in/yaml.v2 v2.2.8 // indirect ) diff --git a/go.sum b/go.sum index 03843f453..89a282975 100644 --- a/go.sum +++ b/go.sum @@ -17,11 +17,6 @@ github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47e github.com/klauspost/cpuid v1.2.3/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid v1.3.1 h1:5JNjFYYQrZeKRJ0734q51WCEEn2huer72Dc7K+R/b6s= github.com/klauspost/cpuid v1.3.1/go.mod h1:bYW4mA6ZgKPob1/Dlai2LviZJO7KGI3uoWLd42rAQw4= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/minio/md5-simd v1.1.0 h1:QPfiOqlZH+Cj9teu0t9b1nTBfPbyTl16Of5MeuShdK4= github.com/minio/md5-simd v1.1.0/go.mod h1:XpBqgZULrMYD3R+M28PcmP0CkI7PEMzB3U77ZrKZ0Gw= github.com/minio/sha256-simd v0.1.1 h1:5QHSlgo3nt5yKOJrC7W8w7X+NFl8cMPZm96iu8kKUJU= @@ -70,8 +65,6 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/ini.v1 v1.57.0 h1:9unxIsFcTt4I55uWluz+UmL95q4kdJ0buvQ1ZIqVQww= gopkg.in/ini.v1 v1.57.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/pkg/credentials/iam_aws_test.go b/pkg/credentials/iam_aws_test.go index 686721dc2..9092c01b7 100644 --- a/pkg/credentials/iam_aws_test.go +++ b/pkg/credentials/iam_aws_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows /* diff --git a/pkg/policy/bucket-policy_test.go b/pkg/policy/bucket-policy_test.go index 6848dbd01..8882d0366 100644 --- a/pkg/policy/bucket-policy_test.go +++ b/pkg/policy/bucket-policy_test.go @@ -18,6 +18,7 @@ package policy import ( + "encoding/json" "fmt" "reflect" "testing" diff --git a/transport.go b/transport.go index d5ad15b8b..a88477b73 100644 --- a/transport.go +++ b/transport.go @@ -1,3 +1,4 @@ +//go:build go1.7 || go1.8 // +build go1.7 go1.8 /*