Skip to content

add redis helper for easily type convert#22

Open
codeskyblue wants to merge 8 commits intohoisie:masterfrom
codeskyblue:master
Open

add redis helper for easily type convert#22
codeskyblue wants to merge 8 commits intohoisie:masterfrom
codeskyblue:master

Conversation

@codeskyblue
Copy link
Copy Markdown

tototally add 3 files.

Details

3 files: reply.go must.go README.md example/must_example.go (some code from @garyburd redigo)

reply.go: add some useful function to convert []byte to specified type.
must.go: Strict type convert, if err found, just panic., (add MustInt MustString ...(idea from regrexp.MustCompile))
example/* : add examples
README.md update readme with new code description.

PS

Some format are still different from source code, I don't know why, for I already use gofmt.

@hoisie
Copy link
Copy Markdown
Owner

hoisie commented Jun 29, 2013

Can you run 'make format' ? It formats with spaces instead if tabs .

@codeskyblue
Copy link
Copy Markdown
Author

not merge commit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants