From 5e18bd5ed62e2456db4f276fac89e47dd1d3cde9 Mon Sep 17 00:00:00 2001 From: Fang Yuan Date: Tue, 12 Nov 2024 11:55:06 +0800 Subject: [PATCH] feat: CopyObject md demo update Signed-off-by: Fang Yuan --- docs/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/API.md b/docs/API.md index 0e6fac7d2e..b40fbd7019 100644 --- a/docs/API.md +++ b/docs/API.md @@ -667,7 +667,7 @@ dstOpts := minio.CopyDestOptions{ } // Copy object call -uploadInfo, err := minioClient.CopyObject(context.Background(), dst, src) +uploadInfo, err := minioClient.CopyObject(context.Background(), dstOpts, srcOpts) if err != nil { fmt.Println(err) return @@ -703,7 +703,7 @@ dstOpts := minio.CopyDestOptions{ } // Copy object call -_, err = minioClient.CopyObject(context.Background(), dst, src) +_, err = minioClient.CopyObject(context.Background(), dstOpts, srcOpts) if err != nil { fmt.Println(err) return