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

Add Status type for status replies #7

Merged
merged 4 commits into from
Jul 31, 2013
Merged

Add Status type for status replies #7

merged 4 commits into from
Jul 31, 2013

Conversation

inkel
Copy link
Owner

@inkel inkel commented Jul 22, 2013

Currently status replies (i.e. +OK, +PONG) are returned as a string, thus you cannot differentiate it from a regular string reply (i.e. $2\r\nOK\r\n.)

@inkel
Copy link
Owner Author

inkel commented Jul 22, 2013

I'm debating whether or not including a IsStatus(interface{}) bool function. I think that, if I did this, I'd had to do the same for all the other types (bulk, multi-bulk and numbers.)

Thoughts are welcomed.

inkel added a commit that referenced this pull request Jul 31, 2013
Add Status type for status replies
@inkel inkel merged commit 95b60c0 into master Jul 31, 2013
@inkel inkel deleted the status-type branch July 31, 2013 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant