Skip to content

Commit

Permalink
append minio. to ListObjectsOptions (#1438)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
insanitywholesale authored Jan 4, 2021
1 parent a0379e0 commit 723a487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 723a487

Please sign in to comment.