Using redis#Setbit
to set bit in a key like: redis.Do("SETBIT", "mykey", 1, 1)
.
When I read it using redis#Get
like redis.Do("GET", "mykey")
, I get a bit string.
How do I unpack the string so I can get a slice of bools in Go? In Ruby, you use String#unpack like "@".unpack
which returns ["00000010"]