From a833cd7474c5b0e3a7ff684ba10119a82e4bd75d Mon Sep 17 00:00:00 2001 From: rakeshgm Date: Sun, 12 Dec 2021 18:13:52 +0530 Subject: [PATCH] rgw/admin: correct example the function `co.GetUser()` needs - ctx and type user not string Signed-off-by: rakeshgm --- rgw/admin/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rgw/admin/README.md b/rgw/admin/README.md index c13d745..e4d6e42 100644 --- a/rgw/admin/README.md +++ b/rgw/admin/README.md @@ -25,7 +25,7 @@ func main() { } // Get the "admin" user - user, err := co.GetUser(context.Background(), "admin") + user, err := co.GetUser(context.Background(), admin.User{ID: "admin"}) if err != nil { panic(err) }