Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO: Handling interface response #2586

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

janhavigupta007
Copy link
Collaborator

Adding the handling of a common interface{} response when called via Custom command.

Signed-off-by: Janhavi Gupta <janhavigupta@google.com>
Signed-off-by: Janhavi Gupta <janhavigupta@google.com>
@janhavigupta007 janhavigupta007 requested a review from a team as a code owner November 4, 2024 07:01
@janhavigupta007 janhavigupta007 changed the title Handling interface response GO: Handling interface response Nov 4, 2024
@janhavigupta007 janhavigupta007 self-assigned this Nov 4, 2024
@janhavigupta007 janhavigupta007 added the go golang wrapper label Nov 4, 2024
suite.verifyOK(client.MSet(keyValueMap))
keys := []string{key1, key2, key3}
values := []interface{}{value, value, nil}
result, err := client.CustomCommand(append([]string{"MGET"}, keys...))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to test with custom command with different return types, for example config get returns a map, del returns an integer

Signed-off-by: Janhavi Gupta <janhavigupta@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go golang wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants