rgw/admin: correct example

the function `co.GetUser()` needs -
ctx and type user not string

Signed-off-by: rakeshgm <rakeshgm@redhat.com>
This commit is contained in:
rakeshgm 2021-12-12 18:13:52 +05:30 committed by mergify[bot]
parent 0443277bb9
commit a833cd7474

View File

@ -25,7 +25,7 @@ func main() {
} }
// Get the "admin" user // Get the "admin" user
user, err := co.GetUser(context.Background(), "admin") user, err := co.GetUser(context.Background(), admin.User{ID: "admin"})
if err != nil { if err != nil {
panic(err) panic(err)
} }