redis
redis copied to clipboard
add redis helper for easily type convert
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.
Can you run 'make format' ? It formats with spaces instead if tabs .
not merge commit ?