redis icon indicating copy to clipboard operation
redis copied to clipboard

add redis helper for easily type convert

Open codeskyblue opened this issue 12 years ago • 2 comments

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.

codeskyblue avatar Jun 29 '13 06:06 codeskyblue

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

hoisie avatar Jun 29 '13 15:06 hoisie

not merge commit ?

codeskyblue avatar Jul 06 '13 02:07 codeskyblue