From d57aebd2044d6f8eb3a83d64adbd47036626bfa0 Mon Sep 17 00:00:00 2001 From: insanitywholesale <45580420+insanitywholesale@users.noreply.github.com> Date: Sun, 3 Jan 2021 03:16:28 +0200 Subject: [PATCH] append minio. to ListObjectsOptions while using the api I copied and paste from the documentation and realized the example was incorrect which led to an error saying ListObjectsOptions was undefined. changing it to minio.ListObjectsOptions like the rest of the examples fixed the compile-time error. --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 3035bea13..6c34b178b 100644 --- a/docs/API.md +++ b/docs/API.md @@ -297,7 +297,7 @@ ctx, cancel := context.WithCancel(context.Background()) defer cancel() -objectCh := minioClient.ListObjects(ctx, "mybucket", ListObjectsOptions{ +objectCh := minioClient.ListObjects(ctx, "mybucket", minio.ListObjectsOptions{ Prefix: "myprefix", Recursive: true, })